Skip to content

Commit e96c4b4

Browse files
committed
Add secruity advisory for fast-float.
1 parent b26bfa9 commit e96c4b4

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
```toml
2+
[advisory]
3+
id = "RUSTSEC-0000-0000"
4+
package = "fast-float"
5+
date = "2024-10-31"
6+
informational = "unsound"
7+
categories = ["memory-corruption"]
8+
url = "<https://github.com/aldanor/fast-float-rust/issues/28>"
9+
references = ["https://github.com/aldanor/fast-float-rust/issues/35", "https://github.com/aldanor/fast-float-rust/issues/37"]
10+
aliases = []
11+
12+
[versions]
13+
patched = []
14+
```
15+
16+
# Multiple soundness issues
17+
18+
`fast-float` contains multiple soundness issues:
19+
20+
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).
21+
1. [Many functions marked as safe with non-local safety guarantees](https://github.com/aldanor/fast-float-rust/issues/37)
22+
23+
The library is also unmaintained.
24+
25+
## Alternatives
26+
27+
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)