Skip to content

Commit 649bd03

Browse files
author
Robert Marsh
authored
Merge pull request #5101 from NateD-MSFT/patch-1
Add KeGetCurrentProcessorNumberEx to CWE-457 whitelist
2 parents f0d5a91 + 9470a99 commit 649bd03

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cpp/ql/src/Security/CWE/CWE-457/InitializationFunctions.qll

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,9 @@ class InitializationFunction extends Function {
353353
// Destination range is zeroed out on failure, assuming first two parameters are valid
354354
"memcpy_s",
355355
// This zeroes the memory unconditionally
356-
"SeCreateAccessState"
356+
"SeCreateAccessState",
357+
// Argument initialization is optional, but always succeeds
358+
"KeGetCurrentProcessorNumberEx"
357359
]
358360
)
359361
}

0 commit comments

Comments
 (0)