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 bug when jumping to a multiple of 0x10 #254

Merged
merged 2 commits into from
Mar 17, 2023

Conversation

rbs-jacob
Copy link
Member

One sentence summary of this PR (This should go in the CHANGELOG!)

Fix bug where jumping to a multiple of 0x10 in the GUI went to the previous line.

The changes introduced in #243 caused a different bug where jumping to an exact multiple of 0x10 rounded down the address to jump to and went to the previous line in the hex view of the GUI. This change fixes that issue.

Anyone you think should look at this, specifically?

@whyitfor

@rbs-jacob rbs-jacob requested a review from whyitfor March 15, 2023 19:18
@whyitfor
Copy link
Contributor

The description suggests there is a rounding error. Is that really the case?

What seems to be happening is if, say, you try to navigate to 0x20 -- the GUI is displaying byte 0x20 (which is on the previous line), and not the 0x20 heading.

If this is what is happening, I wonder if it makes sense to have the GUI start at byte 0 (instead of 1). If not, this change looks good.

@rbs-jacob rbs-jacob merged commit 548ddb5 into redballoonsecurity:master Mar 17, 2023
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.

None yet

2 participants