Closed olivier-matz-6wind closed 3 years ago
(Extracted from PR #185)
After parsing a table or struct, ctx->end_loc is set to the current value of buf, which is expected to be the end of the json data.
However the ctx->end_loc value is incorrect, because buf is not updated after the call to the parser callback function.
Fix this in both flatcc_json_parser_table_as_root() and flatcc_json_parser_struct_as_root().
thanks
(Extracted from PR #185)
After parsing a table or struct, ctx->end_loc is set to the current value of buf, which is expected to be the end of the json data.
However the ctx->end_loc value is incorrect, because buf is not updated after the call to the parser callback function.
Fix this in both flatcc_json_parser_table_as_root() and flatcc_json_parser_struct_as_root().