-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Index out of range #6878
Comments
hi! thanks—is it possible for you to provide a repro so we can look into it? @brockelmore is this the bug you ran into the other day? |
Yes, thank you for your attention to the bug report. I am new to foundry but I will make sure to document the reproduction steps clearly as soon as I am able to dedicate the required time to it. It seems to be a bug in frontend UI, when I first start the debugger, and then i click the |
@DaniPopes I don't remember who initially wrote this, so it's hard to make sense of what's going on here, but this looks very fishy: foundry/crates/debugger/src/tui/draw.rs Lines 239 to 241 in c6790a0
this sets the start line to the number of items in the vec, which then causes the index out of bounds foundry/crates/debugger/src/tui/draw.rs Line 280 in c6790a0
unclear if the fix is as simple as just using len - 1 |
Thanks to #6886, this bug has been fixed |
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (5ea2c5e 2024-01-22T00:21:08.216952070Z)
What command(s) is the bug in?
forge debug --debug exploit.sol --sig "exec()"
Operating System
Linux
Describe the bug
The text was updated successfully, but these errors were encountered: