Closed k4lizen closed 4 months ago
I think there are two links in the technique. The first one links to the prev_size
check you mentioned in the issue. And it is there in glibc-2.35: https://elixir.bootlin.com/glibc/glibc-2.35/source/malloc/malloc.c#L4770
The unlink
macro/function is the second link. Yeah, it is a function now, no longer a macro anymore. I'll fix the description.
the description is updated in https://github.com/shellphish/how2heap/commit/64e5089dce5bae87ec3a16c68d8e30e2f6cbf075
The linked macro: Doesn't even have the prev_size check that is being considered in the code, so it would probably be a good idea to link a newer version, especially since the check is not even a marco anymore, but a function: https://elixir.bootlin.com/glibc/glibc-2.35/source/malloc/malloc.c#L1626