-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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: ABI decoder crashing on certain inputs #1130
Conversation
bfdc613
to
a6d65db
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Great job!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some remarks regarding error messages, otherwise lgtm!
Co-authored-by: Ahmed Sagdati <[email protected]> Co-authored-by: iqdecay <[email protected]>
Extra changes: - `ABIDecoder.config` is now `pub` - `ParamType::validate_is_decodable` now uses `DebugWithDepth` (with depth 0 in tests and `decoder.max_depth` in use) - `DebugWithDepth` moved to `utils` module
To help with reviewing, here are the changes added in latest merge (a7a9acc):
EDIT: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You removed comments that are useful IMO. Also some imprecisions in the error message.
Meaningful change I lost in a merge conflict battle.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent work, @Br1ght0ne!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
Close #1108.
Thanks to @segfault-magnet for helping with debugging
stack_overflow
and the idea forDebugWithDepth
.Checklist