We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60e250c commit b65858fCopy full SHA for b65858f
cpp/ql/src/Critical/DoubleFreeBad.cpp
@@ -5,9 +5,9 @@ int* f() {
5
free(buff);
6
int *new_buffer = malloc(SIZE*sizeof(int));
7
8
-
9
// BAD: If new_buffer is assigned the same address as buff,
10
// the memory allocator will free the new buffer memory region,
11
// leading to use-after-free problems and memory corruption.
+ // abc
12
return new_buffer;
13
}
0 commit comments