Protect against json integer overflow

Closes #75
This commit is contained in:
Erick Tryzelaar committed 2015-05-18 22:40:29 -07:00
1 parent adae2bd3c5
commit e6776ffc37
2 files changed
+14 -4

No files matched your search

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