Skip to content

Commit 60e250c

Browse files
authored
trigger checks
1 parent bdda2a7 commit 60e250c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cpp/ql/src/Critical/DoubleFreeBad.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ int* f() {
55
free(buff);
66
int *new_buffer = malloc(SIZE*sizeof(int));
77
free(buff);
8+
89
// BAD: If new_buffer is assigned the same address as buff,
910
// the memory allocator will free the new buffer memory region,
1011
// leading to use-after-free problems and memory corruption.

0 commit comments

Comments
 (0)