From cf894eb6aa31e179e866e6d551abc52a11657b91 Mon Sep 17 00:00:00 2001 From: comet Date: Mon, 27 Jan 2020 18:34:18 -0600 Subject: [PATCH] fix spelling errors --- glibc_2.25/house_of_spirit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glibc_2.25/house_of_spirit.c b/glibc_2.25/house_of_spirit.c index d6556db..e67a7e5 100644 --- a/glibc_2.25/house_of_spirit.c +++ b/glibc_2.25/house_of_spirit.c @@ -15,7 +15,7 @@ int main() fprintf(stderr, "This region (memory of length: %lu) contains two chunks. The first starts at %p and the second at %p.\n", sizeof(fake_chunks), &fake_chunks[1], &fake_chunks[9]); - fprintf(stderr, "This chunk.size of this region has to be 16 more than the region (to accomodate the chunk data) while still falling into the fastbin category (<= 128 on x64). The PREV_INUSE (lsb) bit is ignored by free for fastbin-sized chunks, however the IS_MMAPPED (second lsb) and NON_MAIN_ARENA (third lsb) bits cause problems.\n"); + fprintf(stderr, "This chunk.size of this region has to be 16 more than the region (to accommodate the chunk data) while still falling into the fastbin category (<= 128 on x64). The PREV_INUSE (lsb) bit is ignored by free for fastbin-sized chunks, however the IS_MMAPPED (second lsb) and NON_MAIN_ARENA (third lsb) bits cause problems.\n"); fprintf(stderr, "... note that this has to be the size of the next malloc request rounded to the internal size used by the malloc implementation. E.g. on x64, 0x30-0x38 will all be rounded to 0x40, so they would work for the malloc parameter at the end. \n"); fake_chunks[1] = 0x40; // this is the size