We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 693fbac commit 3db4c06Copy full SHA for 3db4c06
glibc_2.43/mmap_overlapping_chunks.c
@@ -89,7 +89,7 @@ int main()
89
90
// Vulnerability!!! This could be triggered by an improper index or a buffer overflow from a chunk further below.
91
// Additionally, this same attack can be used with the prev_size instead of the size.
92
- mmap_chunk_3[-1] = (0xFFFFFFFFFD & mmap_chunk_3[-1]) + (0xFFFFFFFFFD & mmap_chunk_2[-1]) | 2;
+ mmap_chunk_3[-1] = (0xFFFFFFFFFD & mmap_chunk_3[-1]) + (0xFFFFFFFFFD & mmap_chunk_2[-1]) | 2 + 0x10;
93
printf("New size of third mmap chunk: 0x%llx\n", mmap_chunk_3[-1]);
94
printf("Free the third mmap chunk, which munmaps the second and third chunks\n\n");
95
0 commit comments