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 overflow issue in memory address boundary check #98

Merged
merged 2 commits into from
Jan 5, 2024

Conversation

pcy190
Copy link
Contributor

@pcy190 pcy190 commented Jan 3, 2024

Fixes #94

Copy link
Owner

@qmonnet qmonnet 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!

I added a test to catch any regression on this, in a separate commit on your PR.

Could you please pull, sign-off your commit, and then update the PR?

@qmonnet qmonnet linked an issue Jan 5, 2024 that may be closed by this pull request
@pcy190 pcy190 force-pushed the patch-3 branch 2 times, most recently from 582c172 to 91d38e9 Compare January 5, 2024 02:57
pcy190 and others added 2 commits January 5, 2024 11:02
Add a test to make sure we don't overflow on additions between addr and
len in check_mem().

Link: qmonnet#94
Signed-off-by: Quentin Monnet <[email protected]>
Signed-off-by: Richard Smith <[email protected]>
@pcy190
Copy link
Contributor Author

pcy190 commented Jan 5, 2024

Updated this PR, thanks.

@qmonnet qmonnet merged commit 36bf0d6 into qmonnet:main Jan 5, 2024
6 of 7 checks passed
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.

Out-of-bound memory write in the interpreter panicked at 'attempt to add with overflow'
2 participants