Prevent crash due to huge number of possible paths through parse stack
This commit is contained in:
parent
ce5b3e8284
commit
df520635c6
5 changed files with 72 additions and 12 deletions
|
|
@ -79,6 +79,7 @@ Tree *ts_tree_make_error(Length, Length, char);
|
|||
void ts_tree_retain(Tree *tree);
|
||||
void ts_tree_release(Tree *tree);
|
||||
bool ts_tree_eq(const Tree *tree1, const Tree *tree2);
|
||||
bool ts_tree_tokens_eq(const Tree *, const Tree *);
|
||||
int ts_tree_compare(const Tree *tree1, const Tree *tree2);
|
||||
|
||||
uint32_t ts_tree_start_column(const Tree *self);
|
||||
|
|
@ -107,6 +108,8 @@ static inline bool ts_tree_is_fragile(const Tree *tree) {
|
|||
ts_tree_total_bytes(tree) == 0;
|
||||
}
|
||||
|
||||
bool ts_external_token_state_eq(const TSExternalTokenState *, const TSExternalTokenState *);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue