5877d9a30d
We first serialize the total number of tags, then serialize each individual tag. If we don't have enough space to serialize a particular tag we stop serializing any remaining tags. However, this causes an out-of-bounds read when deserializing because there are less tags than expected. Just bail when there are too many tags to serialize. |
||
---|---|---|
.. | ||
tree_sitter | ||
binding.cc | ||
grammar.json | ||
parser.c | ||
scanner.cc | ||
tag.h |