tree-sitter/src/runtime
Max Brunsfeld 0143bfdad4 Avoid use-after-free of external token states
Previously, it was possible for references to external token states to
outlive the trees to which those states belonged.

Now, instead of storing references to external token states in the Stack
and in the Lexer, we store references to the external token trees
themselves, and we retain the trees to prevent use-after-free.
2017-06-27 14:54:27 -07:00
..
alloc.h Abort if malloc fails 2016-11-05 21:23:23 -07:00
array.h Avoid including trailing extra tokens within error nodes unnecessarily 2017-02-19 21:21:54 -08:00
document.c Avoid use-after-free of external token states 2017-06-27 14:54:27 -07:00
document.h Remove the TS prefix from some internal type/function names 2016-11-09 20:59:05 -08:00
error_costs.c Move error cost comparisons into their own source file 2017-02-19 21:54:06 -08:00
error_costs.h Move error cost comparisons into their own source file 2017-02-19 21:54:06 -08:00
language.c Define a function providing the type of a given symbol. 2017-04-12 09:47:51 -04:00
language.h Tweak naming and organization of external-scanner related language fields 2016-12-21 11:24:41 -08:00
length.h Fix error in changed ranges calculation 2017-01-27 23:47:34 -08:00
lexer.c Avoid use-after-free of external token states 2017-06-27 14:54:27 -07:00
lexer.h Avoid use-after-free of external token states 2017-06-27 14:54:27 -07:00
node.c Add serialize, deserialize and reset callbacks to external scanners 2016-12-20 13:12:01 -08:00
node.h Represent byte, char and tree counts as 32 bit numbers 2016-11-14 12:19:13 -08:00
parser.c Avoid use-after-free of external token states 2017-06-27 14:54:27 -07:00
parser.h Add an option to immediately halt on syntax error 2017-05-01 13:50:49 -07:00
point.h Remove the TS prefix from some internal type/function names 2016-11-09 20:59:05 -08:00
reduce_action.h Represent byte, char and tree counts as 32 bit numbers 2016-11-14 12:19:13 -08:00
reusable_node.h Avoid use-after-free of external token states 2017-06-27 14:54:27 -07:00
stack.c Avoid use-after-free of external token states 2017-06-27 14:54:27 -07:00
stack.h Avoid use-after-free of external token states 2017-06-27 14:54:27 -07:00
string_input.c Add TSInput option to measure columns in bytes not characters 2017-06-15 16:35:34 -07:00
string_input.h Construct TSStringInput with explicit length. 2017-02-10 09:10:06 -05:00
tree.c Avoid use-after-free of external token states 2017-06-27 14:54:27 -07:00
tree.h Avoid use-after-free of external token states 2017-06-27 14:54:27 -07:00
tree_path.h Always recur into error nodes when reporting changed ranges 2017-06-15 17:06:48 -07:00
utf16.c Support UTF16 directly 2015-12-28 13:53:22 -08:00
utf16.h Support UTF16 directly 2015-12-28 13:53:22 -08:00