You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to x86-64 function calling convention, The first six integer or pointer arguments are passed in registers RDI, RSI, RDX, RCX, R8, R9. so RDI stores the first argument of the free function. which denotes the pointer to free. Using RSI would get the wrong value.
Same for Malloc_Bp_handler function, but I found $RDI = $RSI in malloc when debugging. So malloc trace seems normal. But Free_Bp_handler failed to get the value of the pointer to be freed.
The text was updated successfully, but these errors were encountered:
Pwngdb/angelheap/angelheap.py
Lines 165 to 169 in cd736c1
According to x86-64 function calling convention, The first six integer or pointer arguments are passed in registers
RDI, RSI, RDX, RCX, R8, R9
. so RDI stores the first argument of the free function. which denotes the pointer to free. Using RSI would get the wrong value.Same for
Malloc_Bp_handler
function, but I found$RDI = $RSI
in malloc when debugging. So malloc trace seems normal. ButFree_Bp_handler
failed to get the value of the pointer to be freed.The text was updated successfully, but these errors were encountered: