Add missing padding bytes check before storing tree inline

This commit is contained in:
Max Brunsfeld 2018-09-19 10:52:21 -07:00
parent 3672da6ac3
commit 3dab0066bc
7 changed files with 41 additions and 30 deletions

View file

@ -48,8 +48,7 @@ describe("examples found via fuzzing", [&]() {
));
TSTree *tree = ts_parser_parse_string(parser, nullptr, input.c_str(), input.size());
TSNode node = ts_tree_root_node(tree);
assert_consistent_tree_sizes(node);
assert_consistent_tree_sizes(tree, input);
ts_tree_delete(tree);
ts_parser_delete(parser);