File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed
cpp/ql/test/query-tests/Security/CWE/CWE-134/semmle/consts Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change 1- | consts.cpp:81:9:81:10 | c8 | The format string argument to printf should be constant to prevent security issues and other potential errors. |
21| consts.cpp:86:9:86:10 | v1 | The format string argument to printf should be constant to prevent security issues and other potential errors. |
32| consts.cpp:91:9:91:10 | v2 | The format string argument to printf should be constant to prevent security issues and other potential errors. |
43| consts.cpp:95:9:95:10 | v3 | The format string argument to printf should be constant to prevent security issues and other potential errors. |
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ void a() {
7575 // GOOD: constFuncToArray() always returns a value from gc1, which is always constant
7676 printf (constFuncToArray (0 ));
7777
78- // BAD: format string is not constant
78+ // BAD: format string is not constant [NOT DETECTED]
7979 char c8[10 ];
8080 sprintf (c8, " %d" , 1 );
8181 printf (c8);
You can’t perform that action at this time.
0 commit comments