Fix streaming bug (fuzzing)
This commit is contained in:
1 parent
752e00bc66
commit
6981b46338
1 file changed
+1
@@ -90,6 +90,7 @@ static void parser_reset(struct jv_parser* p) {
|
|||||||
if ((p->flags & JV_PARSE_STREAMING)) {
|
if ((p->flags & JV_PARSE_STREAMING)) {
|
||||||
jv_free(p->path);
|
jv_free(p->path);
|
||||||
p->path = jv_array();
|
p->path = jv_array();
|
||||||
|
p->stacklen = 0;
|
||||||
}
|
}
|
||||||
p->last_seen = JV_LAST_NONE;
|
p->last_seen = JV_LAST_NONE;
|
||||||
jv_free(p->output);
|
jv_free(p->output);
|
||||||
|
|||||||
Reference in new issue
Block a user