Skip to content

Commit c5bb219

Browse files
committed
Add security advisory for fast-float.
1 parent c586bd6 commit c5bb219

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
```toml
2+
[advisory]
3+
id = "RUSTSEC-0000-0000"
4+
package = "fast-float"
5+
date = "2024-10-31"
6+
informational = "unsound"
7+
url = "https://github.com/aldanor/fast-float-rust/issues/35"
8+
references = ["https://github.com/aldanor/fast-float-rust/issues/28", "https://github.com/aldanor/fast-float-rust/issues/37"]
9+
aliases = []
10+
11+
[versions]
12+
patched = []
13+
```
14+
15+
# Multiple soundness issues
16+
17+
`fast-float` contains multiple soundness issues:
18+
19+
1. [Undefined behavior when checking input length](https://github.com/aldanor/fast-float-rust/issues/28), which has been merged but no package [pubished](https://github.com/aldanor/fast-float-rust/issues/35).
20+
1. [Many functions marked as safe with non-local safety guarantees](https://github.com/aldanor/fast-float-rust/issues/37)
21+
22+
The library is also unmaintained.
23+
24+
## Alternatives
25+
26+
For quickly parsing floating-point numbers third-party crates are generally no longer needed. A fast float parsing algorithm by the author of `lexical` has been [merged](https://github.com/rust-lang/rust/pull/86761) into libcore. When requiring direct parsing from bytes and/or partial parsers, the [`fast-float2`](https://crates.io/crates/fast-float2) fork of `fast-float` containing these security patches and reduces overall usage of unsafe.

0 commit comments

Comments
 (0)