Closed moorereason closed 2 years ago
Describe the bug Given a float such as 0=+0_0.0, go-toml accepts the input as valid.
0=+0_0.0
go-toml
$ echo -n "0=+0_0.0" | gotoml-test-decoder { "0": { "type": "float", "value": "0" } }
To Reproduce https://go.dev/play/p/EDKOatLs5WA
toml.Unmarshal([]byte("0=+0_0.0"), &v)
Expected behavior Expected to see an error about leading zero on a float number.
Versions
Additional context Found while doing differential fuzzing against tomlplusplus/v3.
tomlplusplus/v3
Thanks!
Describe the bug Given a float such as
0=+0_0.0
,go-toml
accepts the input as valid.To Reproduce https://go.dev/play/p/EDKOatLs5WA
Expected behavior Expected to see an error about leading zero on a float number.
Versions
Additional context Found while doing differential fuzzing against
tomlplusplus/v3
.