We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31b71ea commit 1ac5db3Copy full SHA for 1ac5db3
cpp/ql/test/query-tests/Critical/MemoryFreed/test_free.cpp
@@ -99,7 +99,7 @@ void* use_after_free(void *a) {
99
100
void test_realloc1(void *a) {
101
free(a);
102
- void *b = realloc(a, sizeof(a)*3); // BAD
+ void *b = realloc(a, sizeof(a)*3); // BAD [NOT DETECTED by cpp/double-free]
103
free(a); // BAD
104
free(b); // GOOD
105
}
0 commit comments