Skip to content

Commit

Permalink
Realloc open blocks when deserializing
Browse files Browse the repository at this point in the history
Previously deserializing assumed that open_blocks had enough capacity to
deserialize all blocks. It appears that this is not always the case and
that open blocks can overflow.

This commit will realloc s->open_blocks if the current capacity is not
big enough.

Fixes tree-sitter-grammars#114
Fixes neovim/neovim#25164
  • Loading branch information
ibash committed Sep 16, 2023
1 parent aaf7679 commit ee0dac3
Show file tree
Hide file tree
Showing 3 changed files with 6,655 additions and 6,646 deletions.
Loading

0 comments on commit ee0dac3

Please sign in to comment.