Skip to content

fix: when free argement is 2, properly releasing memory#239

Open
storm-1614 wants to merge 1 commit into
shellphish:masterfrom
storm-1614:master
Open

fix: when free argement is 2, properly releasing memory#239
storm-1614 wants to merge 1 commit into
shellphish:masterfrom
storm-1614:master

Conversation

@storm-1614
Copy link
Copy Markdown

In malloc_playground, the free command appeared ineffective because ptrArray[tmpArg] was being set to zero before the actual free call. This prevented pwndbg from correctly reflecting the freed state in heap. The fix ensures the pointer is preserved when invoking free.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant