Skip to content

Commit 7c5b04a

Browse files
authored
Merge pull request #20315 from jketema/uninit-test
C++: Add uninitialized local test
2 parents b4d6cb6 + 6b580ac commit 7c5b04a

File tree

1 file changed

+8
-0
lines changed
  • cpp/ql/test/query-tests/Security/CWE/CWE-457/semmle/tests

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#include <stdarg.h>
2+
3+
int va_copy_test(va_list va) {
4+
va_list va2;
5+
va_copy(va2, va);
6+
return 0;
7+
}
8+
// semmle-extractor-options: --microsoft

0 commit comments

Comments
 (0)