From b7afb31d77d1150cdc5e803cb20626fb41aff8aa Mon Sep 17 00:00:00 2001 From: Owen Smith Date: Thu, 16 Nov 2023 15:05:26 +0000 Subject: [PATCH] Fix CodeQL issue ProcNumber should be initialized before calling KeGetCurrentProcessorNumberEx incease the call fails and doesnt populate the PROCESSOR_NUMBER. This function should never fail but the annotations in Windows headers dont state this correctly. Signed-off-by: Owen Smith --- src/xenbus/sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xenbus/sync.c b/src/xenbus/sync.c index cf6e123..4296003 100644 --- a/src/xenbus/sync.c +++ b/src/xenbus/sync.c @@ -265,7 +265,7 @@ SyncWorker( { PSYNC_CONTEXT Context = &SyncContext; ULONG Index; - PROCESSOR_NUMBER ProcNumber; + PROCESSOR_NUMBER ProcNumber = { 0 }; SYNC_REQUEST Request; UNREFERENCED_PARAMETER(Dpc); -- 2.39.5