Skip to content

Commit e143002

Browse files
authored
Merge pull request github#13197 from jketema/test-annotation
C++: Add forgotten test annotation for `cpp/invalid-pointer-deref` test
2 parents 7c02a9b + b1c1513 commit e143002

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)