-
Notifications
You must be signed in to change notification settings - Fork 20
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 Undefined Behavior in check_len
#28
Comments
Alexhuszagh
added a commit
to Alexhuszagh/fast-float-rust
that referenced
this issue
Jun 20, 2021
Alexhuszagh
added a commit
to Alexhuszagh/fast-float-rust
that referenced
this issue
Jun 20, 2021
Alexhuszagh
added a commit
to Alexhuszagh/fast-float-rust
that referenced
this issue
Jun 20, 2021
aldanor
added a commit
that referenced
this issue
Jul 3, 2021
Thanks for detailed investigation and the fix - this was UB indeed (perhaps not immediately obvious). |
This was referenced Nov 9, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Comparison between pointers that do no reference the same array (or 1-past the end of the array) is undefined behavior. Quoting the Rust documentation:
Likewise, quoting the LLVM Language Reference:
Therefore, the following code is undefined behavior. This should likely justify a new version release once this is published.
fast-float-rust/src/common.rs
Lines 76 to 79 in ec1b7d4
The text was updated successfully, but these errors were encountered: