Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix heap chunks cmd for multiple heaps per arena #716

Merged
merged 11 commits into from
Sep 20, 2021

Conversation

theguy147
Copy link
Collaborator

@theguy147 theguy147 commented Sep 16, 2021

Fix heap chunks cmd for multiple heaps per arena

Description/Motivation/Screenshots

see #706, #709 and #711

This PR fixes the heap chunks command for arenas with multiple heaps as described by @irontigran. The tests in #711 do work with this PR after fixing an error in it (when the before cmds are executed the heap has not been initialized yet).

There are quite some chunks here so I added a screenshot of the beginning and the end of the command output:

image

image

How Has This Been Tested?

Architecture Yes/No Comments
x86-32 ✔️
x86-64 ✔️
ARM ✖️
AARCH64 ✖️
MIPS ✖️
POWERPC ✖️
SPARC ✖️
RISC-V ✖️
make test ✔️

Checklist

  • My PR was done against the dev branch, not master.
  • My code follows the code style of this project.
  • My change includes a change to the documentation, if required.
  • My change adds tests as appropriate.
  • I have read and agree to the CONTRIBUTING document.

gef.py Show resolved Hide resolved
gef.py Outdated Show resolved Hide resolved
gef.py Show resolved Hide resolved
gef.py Outdated Show resolved Hide resolved
gef.py Outdated Show resolved Hide resolved
gef.py Outdated Show resolved Hide resolved
gef.py Outdated Show resolved Hide resolved
docs/commands/heap.md Outdated Show resolved Hide resolved
docs/commands/heap.md Show resolved Hide resolved
gef.py Outdated Show resolved Hide resolved
gef.py Show resolved Hide resolved
gef.py Outdated Show resolved Hide resolved
Copy link
Owner

@hugsy hugsy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very thorough PR 👍 And thanks for adding tests to it

Just got a few tiny nitpicks

docs/commands/heap.md Show resolved Hide resolved
gef.py Outdated Show resolved Hide resolved
Copy link
Owner

@hugsy hugsy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good!

@theguy147 theguy147 linked an issue Sep 19, 2021 that may be closed by this pull request
4 tasks
@theguy147 theguy147 merged commit 11a68a2 into hugsy:dev Sep 20, 2021
@theguy147 theguy147 deleted the multiple-heap-per-arena branch September 20, 2021 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

heap chunks doesn't list chunks in a non-main arena
3 participants