mirror of
https://github.com/github/codeql.git
synced 2026-04-24 08:15:14 +02:00
C++: Accept query test changes.
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
| consts.cpp:81:9:81:10 | c8 | The format string argument to printf should be constant to prevent security issues and other potential errors. |
|
||||
| consts.cpp:86:9:86:10 | v1 | The format string argument to printf should be constant to prevent security issues and other potential errors. |
|
||||
| consts.cpp:91:9:91:10 | v2 | The format string argument to printf should be constant to prevent security issues and other potential errors. |
|
||||
| consts.cpp:95:9:95:10 | v3 | The format string argument to printf should be constant to prevent security issues and other potential errors. |
|
||||
|
||||
@@ -75,7 +75,7 @@ void a() {
|
||||
// GOOD: constFuncToArray() always returns a value from gc1, which is always constant
|
||||
printf(constFuncToArray(0));
|
||||
|
||||
// BAD: format string is not constant
|
||||
// BAD: format string is not constant [NOT DETECTED]
|
||||
char c8[10];
|
||||
sprintf(c8, "%d", 1);
|
||||
printf(c8);
|
||||
|
||||
Reference in New Issue
Block a user