🪴 あやめHex

Search

Search IconIcon to open search

Last updated Nov 19, 2022 Edit Source

FunctionSecurity CheckError
unlinkWhether chunk size is equal to the previous size set in the next chunk (in memory)corrupted size vs. prev_size
unlinkWhether P->fd->bk == P and P->bk->fd == P*corrupted double-linked list
_int_mallocWhile removing the first chunk from fastbin (to service a malloc request), check whether the size of the chunk falls in fast chunk size rangemalloc(): memory corruption (fast)
_int_mallocWhile removing the last chunk (victim) from a smallbin (to service a malloc request), check whether victim->bk->fd and victim are equalmalloc(): smallbin double linked list corrupted
_int_mallocWhile iterating in unsorted bin, check whether size of current chunk is within minimum (2*SIZE_SZ) and maximum (av->system_mem) rangemalloc(): memory corruption
_int_mallocWhile inserting last remainder chunk into unsorted bin (after splitting a large chunk), check whether unsorted_chunks(av)->fd->bk == unsorted_chunks(av)malloc(): corrupted unsorted chunks
_int_mallocWhile inserting last remainder chunk into unsorted bin (after splitting a fast or a small chunk), check whether unsorted_chunks(av)->fd->bk == unsorted_chunks(av)malloc(): corrupted unsorted chunks 2
_int_freeCheck whether p** is before p + chunksize(p) in the memory (to avoid wrapping)free(): invalid pointer
_int_freeCheck whether the chunk is at least of size MINSIZE or a multiple of MALLOC_ALIGNMENTfree(): invalid size
_int_freeFor a chunk with size in fastbin range, check if next chunk’s size is between minimum and maximum size (av->system_mem)free(): invalid next size (fast)
_int_freeWhile inserting fast chunk into fastbin (at HEAD), check whether the chunk already at HEAD is not the samedouble free or corruption (fasttop)
_int_freeIf the chunk is not within the size range of fastbin and neither it is a mmapped chunks, check whether it is not the same as the top chunkdouble free or corruption (top)
_int_freeCheck whether next chunk (by memory) is within the boundaries of the arenadouble free or corruption (out)
_int_freeCheck whether next chunk’s (by memory) previous in use bit is markeddouble free or corruption (!prev)
_int_freeCheck whether size of next chunk is within the minimum and maximum size (av->system_mem)free(): invalid next size (normal)
_int_freeWhile inserting the coalesced chunk into unsorted bin, check whether unsorted_chunks(av)->fd->bk == unsorted_chunks(av)free(): corrupted unsorted chunks