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(debugger): a potential underflow in memory highlighting #6508

Merged
merged 2 commits into from
Dec 4, 2023

Conversation

soyccan
Copy link
Contributor

@soyccan soyccan commented Dec 3, 2023

Motivation

The debugger colors memory region for a variety of instructions that access the memory, as described in #5940. But there is a potential underflow if the size is 0 (where offset + size - 1 underflows).

Solution

Change to a simpler and more robust way to index the memory region.

Minor changes: Handle the potential out-of-bound access to the stack

The debugger colors memory region for a variety of instructions that
access the memory, as described in foundry-rs#5940. But there is a potential
underflow if the size is 0 (where offset + size - 1 underflows).
Change to a simpler and more robust way to index the memory region.
@DaniPopes DaniPopes merged commit 3ee4135 into foundry-rs:master Dec 4, 2023
18 of 19 checks passed
@soyccan soyccan deleted the memhl-fix branch January 9, 2024 03:29
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.

2 participants