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. |
2
1
| consts.cpp:86:9:86:10 | v1 | The format string argument to printf should be constant to prevent security issues and other potential errors. |
3
2
| consts.cpp:91:9:91:10 | v2 | The format string argument to printf should be constant to prevent security issues and other potential errors. |
4
3
| 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() {
75
75
// GOOD: constFuncToArray() always returns a value from gc1, which is always constant
76
76
printf (constFuncToArray (0 ));
77
77
78
- // BAD: format string is not constant
78
+ // BAD: format string is not constant [NOT DETECTED]
79
79
char c8[10 ];
80
80
sprintf (c8, " %d" , 1 );
81
81
printf (c8);
You can’t perform that action at this time.
0 commit comments