From 97b2d58e996d257d7a92ac46cb120d7b5c2b2a11 Mon Sep 17 00:00:00 2001 From: Alex Kerr Date: Thu, 12 Jan 2023 18:34:32 +0000 Subject: [PATCH] Zero out event trace properties --- C/STrace/Etw.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/C/STrace/Etw.cpp b/C/STrace/Etw.cpp index 5164573..d3d278e 100644 --- a/C/STrace/Etw.cpp +++ b/C/STrace/Etw.cpp @@ -100,6 +100,7 @@ PEVENT_TRACE_PROPERTIES_V2 AllocEventProperties() return NULL; } + memset(eventProperties, 0, eventPropertiesSize); eventProperties->Wnode.BufferSize = 0xB0; eventProperties->Wnode.Flags = WNODE_FLAG_TRACED_GUID; eventProperties->Wnode.Guid = ETW_SESSION_GUID;