-
Notifications
You must be signed in to change notification settings - Fork 391
lexical
is a popular crate with a lot of UB
#1757
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
Comments
Is there any alternative? |
For floats: For integers: Note that I have not reviewed these crates for soundness. There's also atoi_simd but I've tried fuzzing it and the fuzzer has discovered straight-up buffer overreads in under a minute, so it's even more broken than |
And there's also https://crates.io/crates/minimal-lexical but that also needs to be carefully checked for soundness |
fast-float is also not in the best shape, it has a soundness issue. A fix was merged 2 years ago and never released. But I'm pretty sure I've seen the author around, so they can probably be encouraged to cut a new release. |
Not necessarily broadly applicable as an alternative, but |
For float parsing, we still stay with rust-lexical despite of problems (rustsec/advisory-db#1757). Still not sure about which alternative to use for float parsing from byte slices and for pretty-printing floats
https://github.com/Alexhuszagh/rust-lexical/issues lists a large amount of soundness issues, and the crate has not been updated in over a year. It has 15,000 daily downloads. We should file an advisory for it.
The text was updated successfully, but these errors were encountered: