Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
cpp/invalid-pointer-deref
1 parent d8c0054 commit b1c1513Copy full SHA for b1c1513
1 file changed
cpp/ql/test/experimental/query-tests/Security/CWE/CWE-193/pointer-deref/test.cpp
@@ -304,7 +304,7 @@ void test21() {
304
void** xs = new void*[n];
305
306
for (int i = 0; i < n; i += 2) {
307
- xs[i] = test21_get(i);
308
- xs[i+1] = test21_get(i+1);
+ xs[i] = test21_get(i); // GOOD
+ xs[i+1] = test21_get(i+1); // GOOD [FALSE POSITIVE]
309
}
310
0 commit comments