Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Apply patch from Jarrod (GitHub ID: sketch34)

When processing JSON streams from a HTTP response the JSON stream may be incomplete and invalid.
  • Loading branch information...
commit d225b8079fa0fa3d4d11a79d89ec2499be9ada71 1 parent 00cefde
@hungc hungc authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 JSON_parser.c
View
4 JSON_parser.c
@@ -471,6 +471,10 @@ int JSON_parser_reset(JSON_parser jc)
jc->stack_capacity = (int)COUNTOF(jc->static_stack);
jc->depth = -1;
jc->stack = &jc->static_stack[0];
+ jc->type = JSON_T_NONE;
+ jc->escaped = 0;
+ jc->before_comment_state = 0;
+ jc->error = 0;
}
/* set up the parse buffer */
Please sign in to comment.
Something went wrong with that request. Please try again.