Skip to content

Commit b1c1513

Browse files
committed
C++: Add forgotten test annotation in for cpp/invalid-pointer-deref test
1 parent d8c0054 commit b1c1513

File tree

1 file changed

+2
-2
lines changed
  • cpp/ql/test/experimental/query-tests/Security/CWE/CWE-193/pointer-deref

1 file changed

+2
-2
lines changed

cpp/ql/test/experimental/query-tests/Security/CWE/CWE-193/pointer-deref/test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ void test21() {
304304
void** xs = new void*[n];
305305

306306
for (int i = 0; i < n; i += 2) {
307-
xs[i] = test21_get(i);
308-
xs[i+1] = test21_get(i+1);
307+
xs[i] = test21_get(i); // GOOD
308+
xs[i+1] = test21_get(i+1); // GOOD [FALSE POSITIVE]
309309
}
310310
}

0 commit comments

Comments
 (0)