We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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
The text was updated successfully, but these errors were encountered:
Decode: use cleaned byte slice throughout parseFloat
dcfc88d
Fixes pelletier#734
Decode: use cleaned byte slice throughout parseFloat (#735)
146f70e
Fixes #734
Thanks!
Sorry, something went wrong.
No branches or pull requests
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
.The text was updated successfully, but these errors were encountered: