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 parsing out-of-bounds nan constants #1111

Merged
merged 2 commits into from
Jul 12, 2023

Conversation

alexcrichton
Copy link
Member

Previously a float token in a wasm text file could trigger a panic if it was out of bounds, for example nan:0xffffffffffffffff0 (16 f plus one 0). This .unwrap() on a parse has been replaced with a fallible one to propagate the error handling.

Previously a float token in a wasm text file could trigger a panic if it
was out of bounds, for example `nan:0xffffffffffffffff0` (16 `f` plus
one `0`). This `.unwrap()` on a parse has been replaced with a fallible
one to propagate the error handling.
@fitzgen fitzgen merged commit 42f4bbf into bytecodealliance:main Jul 12, 2023
14 checks passed
@alexcrichton alexcrichton deleted the fix-float-panic branch March 12, 2024 22:46
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