Issue #371: fix parsing of "-Infinity" (although in a somewhat different location than PR#372 used), and add a case to test_parse to check for this.

This commit is contained in:
Eric Haszlakiewicz
2017-11-26 22:42:40 -05:00
parent 2a22858fe7
commit 4d1e0b4409
3 changed files with 3 additions and 0 deletions

View File

@@ -767,6 +767,7 @@ struct json_object* json_tokener_parse_ex(struct json_tokener *tok,
(c == 'i' || c == 'I'))
{
state = json_tokener_state_inf;
tok->st_pos = 0;
goto redo_char;
}
}