diff options
author | Eric Huss <eric@huss.org> | 2019-04-05 13:51:28 -0700 |
---|---|---|
committer | Eric Huss <eric@huss.org> | 2019-04-05 13:51:28 -0700 |
commit | c53ed53659f6fbbc1257ee028d4b6e8f06193fdb (patch) | |
tree | ea03c5625956b1ca1271e20dc18e8bb7e59eaedf /src | |
parent | 166d8f08b3bb70b878664a6689904924c72ab7d6 (diff) | |
download | milf-rs-c53ed53659f6fbbc1257ee028d4b6e8f06193fdb.tar.gz milf-rs-c53ed53659f6fbbc1257ee028d4b6e8f06193fdb.zip |
Fix float with invalid suffix.
Diffstat (limited to 'src')
-rw-r--r-- | src/de.rs | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1396,6 +1396,8 @@ impl<'a> Deserializer<'a> { return Err(self.error(start, ErrorKind::NumberInvalid)); } exponent = Some(a); + } else if !suffix.is_empty() { + return Err(self.error(start, ErrorKind::NumberInvalid)); } let mut number = integral |