We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bdda2a7 commit 60e250cCopy full SHA for 60e250c
cpp/ql/src/Critical/DoubleFreeBad.cpp
@@ -5,6 +5,7 @@ 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.
0 commit comments