We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 043a55a commit 937b2c5Copy full SHA for 937b2c5
1 file changed
cpp/ql/test/query-tests/Security/CWE/CWE-193/test.cpp
@@ -64,7 +64,7 @@ void test5(int size) {
64
}
65
66
for (char* p = begin; p <= end; ++p) {
67
- *p = 0; // $ deref=L53->L62->L67 deref=L53->L66->L67 // BAD
+ *p = 0; // $ deref=L53->L66->L67 // BAD
68
69
70
for (char* p = begin; p < end; ++p) {
@@ -804,7 +804,7 @@ void test6_no_field_flow(int size) {
804
805
806
807
- *p = 0; // $ deref=L794->L802->L807 deref=L794->L806->L807 // BAD
+ *p = 0; // $ deref=L794->L806->L807 // BAD
808
809
810
@@ -868,4 +868,4 @@ void test17(int size) {
868
char* p = (char*)g_malloc(size);
869
char* q = p + size; // $ alloc=L868
870
char a = *q; // $ deref=L869->L870 // BAD
871
-}
+}
0 commit comments