tree-sitter/src/runtime
Phil Turnbull d1b19e8196 Prevent NULL pointer dereference in parser__accept
parser__select_tree can return true if 'left != NULL' and 'right == NULL' which
will later cause a NULL ptr deref:

src/runtime/parser.c:842:14: warning: Access to field 'ref_count' results in a dereference of a null pointer (loaded from variable 'root')
      assert(root->ref_count > 0);
             ^~~~~~~~~~~~~~~
2017-06-14 11:12:06 -04: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 Add an option to immediately halt on syntax error 2017-05-01 13:50:49 -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 Add an option to immediately halt on syntax error 2017-05-01 13:50:49 -07:00
lexer.h Add an option to immediately halt on syntax error 2017-05-01 13:50:49 -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 Prevent NULL pointer dereference in parser__accept 2017-06-14 11:12:06 -04: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 Move reusable node functions to their own file 2017-01-05 10:07:27 -08:00
stack.c Don't use pointer equality to compare external token states 2017-05-03 09:57:09 -07:00
stack.h Add ability to store external token state per stack version 2017-01-04 21:22:23 -08:00
string_input.c Pass through to ts_string_input_make_with_length. 2017-02-10 09:27:21 -05:00
string_input.h Construct TSStringInput with explicit length. 2017-02-10 09:10:06 -05:00
tree.c Fix lookahead_char type in ts_tree_make_error function 2017-04-27 14:49:04 -07:00
tree.h Fix lookahead_char type in ts_tree_make_error function 2017-04-27 14:49:04 -07:00
tree_path.h Fix error in changed ranges calculation 2017-01-27 23:47:34 -08: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