Skip to content

Commit 7c22146

Browse files
committed
C++: Accept query test changes.
1 parent 096073d commit 7c22146

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

cpp/ql/test/query-tests/Security/CWE/CWE-134/semmle/consts/NonConstantFormat.expected

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
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. |

cpp/ql/test/query-tests/Security/CWE/CWE-134/semmle/consts/consts.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)