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 OOB read bug - issue 6833 #6835

Merged
merged 1 commit into from
Aug 13, 2024
Merged

Fix OOB read bug - issue 6833 #6835

merged 1 commit into from
Aug 13, 2024

Conversation

sofiaaberegg
Copy link
Contributor

This PR fixes the out-of-bounds read bug noted in issue 6833 by performing error checking on a pointer before it is used.

Post fix output:

./wasm-opt ./wasm-oob-read.wasm
Fatal: 1:184: error: expected elem index or identifier

@kripken
Copy link
Member

kripken commented Aug 13, 2024

Thanks!

@kripken kripken merged commit 6dc5b90 into WebAssembly:main Aug 13, 2024
13 checks passed
@sofiaaberegg sofiaaberegg deleted the issue-6833 branch August 13, 2024 21:41
@gkdn gkdn mentioned this pull request Aug 31, 2024
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