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

Return proper message at underflow #1379

Merged
merged 1 commit into from
Jul 8, 2024
Merged

Conversation

Fumuran
Copy link
Contributor

@Fumuran Fumuran commented Jul 3, 2024

This small PR adds an underflow check in the local_to_absolute_addr function and return of proper error message instead of panic "subtract with underflow" one.

Related issue: #1372

@Fumuran Fumuran requested a review from bobbinth July 3, 2024 14:36
@Fumuran Fumuran linked an issue Jul 3, 2024 that may be closed by this pull request
@Fumuran Fumuran force-pushed the andrew-subtract-with-overflow branch from 037f8e7 to 46aca51 Compare July 3, 2024 14:39
@Fumuran Fumuran requested a review from bobbinth July 8, 2024 10:30
Copy link
Contributor

@bobbinth bobbinth left a comment

Choose a reason for hiding this comment

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

Looks good! Thank you!

@bobbinth bobbinth merged commit 0c3c77b into next Jul 8, 2024
15 checks passed
@bobbinth bobbinth deleted the andrew-subtract-with-overflow branch July 8, 2024 21:38
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.

Return proper error message from the mem_ops in case of underflow
2 participants