Skip to content

Commit 8e52895

Browse files
authored
1 parent 07e31ab commit 8e52895

File tree

3 files changed

+27
-2
lines changed

3 files changed

+27
-2
lines changed

crates/apollo-smith/CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,31 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
1818
## Maintenance
1919
2020
## Documentation -->
21+
# [0.15.2](https://crates.io/crates/apollo-smith/0.15.2) - 2025-11-10
22+
23+
## Fixes
24+
- **Return arbitrary::Error::IncorrectFormat for unsupported floats- [tninesling], [pull/1005]**
25+
When generating floats for GraphQL documents, we were naively unwrapping the
26+
conversion from `f64` to `serde_json::Number`. This would panic when
27+
`arbitrary` returned `f64::INFINITY` of `f64::NAN` because the `Number`
28+
conversion only works when its input is finite. In this case, the underlying
29+
bytes used to generate the value are considered to be in an invalid format.
30+
So, we return `arbitrary::Error::IncorrectFormat` to tell fuzzers to use a
31+
different seed in the future.
32+
33+
[tninesling]: https://github.com/tninesling
34+
[pull/1005]: https://github.com/apollographql/apollo-rs/pull/1005
35+
36+
## Maintenance
37+
- **Apply new clippy rules from Rust 1.90 - [goto-bus-stop], [pull/1001]**
38+
39+
[goto-bus-stop]: https://github.com/goto-bus-stop
40+
[pull/1001]: https://github.com/apollographql/apollo-rs/pull/1001
41+
42+
- **bump minimum arbitrary version - [goto-bus-stop], [pull/1007]**
43+
44+
[goto-bus-stop]: https://github.com/goto-bus-stop
45+
[pull/1007]: https://github.com/apollographql/apollo-rs/pull/1007
2146

2247
# [0.15.1](https://crates.io/crates/apollo-smith/0.15.1) - 2025-08-08
2348

crates/apollo-smith/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "apollo-smith"
3-
version = "0.15.1" # When bumping, also update README.md
3+
version = "0.15.2" # When bumping, also update README.md
44
edition = "2021"
55
authors = ["Benjamin Coenen <[email protected]>"]
66
license = "MIT OR Apache-2.0"

crates/apollo-smith/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ and add `apollo-smith` to your Cargo.toml:
5050
## fuzz/Cargo.toml
5151

5252
[dependencies]
53-
apollo-smith = "0.15.1"
53+
apollo-smith = "0.15.2"
5454
```
5555

5656
It can then be used in a `fuzz_target` along with the [`arbitrary`] crate,

0 commit comments

Comments
 (0)