Merge pull request #80 from ProtectedMode/master

Fix #77, integer overflow when parsing JSON scientific notation number.
This commit is contained in:
Erick Tryzelaar committed 2015-06-08 06:57:33 -07:00
commit 7dc1a64f03
2 files changed
+13 -4

No files matched your search

+1
View File
@@ -703,6 +703,7 @@ fn test_parse_number_errors() {
("1e+", Error::SyntaxError(ErrorCode::InvalidNumber, 1, 3)),
("1a", Error::SyntaxError(ErrorCode::TrailingCharacters, 1, 2)),
("777777777777777777777777777", Error::SyntaxError(ErrorCode::InvalidNumber, 1, 20)),
("1e777777777777777777777777777", Error::SyntaxError(ErrorCode::InvalidNumber, 1, 22)),
]);
}