You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 24, 2022. It is now read-only.
toml returns a NumberInvalid error when to deserialize inf, but happily serialize numbers like 99e999 into inf:
externcrate toml;fnmain(){let s = "key = 99e9999";let data: toml::Value = toml::from_str(s).unwrap();// fails with "key = inf"println!("{}", toml::to_string(&data).unwrap());}
outputs key = inf.
Given that inf is already explicitly disallowed, I feel like toml should also return a NumberInvalid error here instead of silently deserializing things into inf.
toml
returns aNumberInvalid
error when to deserializeinf
, but happily serialize numbers like99e999
intoinf
:outputs
key = inf
.Given that
inf
is already explicitly disallowed, I feel liketoml
should also return aNumberInvalid
error here instead of silently deserializing things intoinf
.Found with rust-fuzz/targets#72
The text was updated successfully, but these errors were encountered: