Fix incorrect space parsing on ill-formed JSON
@@ -489,7 +489,7 @@ const char *flatcc_json_parser_match_constant(flatcc_json_parser_t *ctx, const c
*more = 0;
return flatcc_json_parser_set_error(ctx, buf, end, flatcc_json_parser_error_invalid_escape);
case '\"':
- buf = flatcc_json_parser_space(ctx, buf + 1, 0);
+ buf = flatcc_json_parser_space(ctx, buf + 1, end);
*more = 0;
return buf;
}
