tree-sitter/lib
furunkel f78ad7162f
Don't use zero maxlen for snprintf in ts_subtree__write_to_string
It seems that (some implementations of?) `snprintf` returns -1 and sets `errno` to `EINVAL` if a `maxlen` of zero is passed. This causes the count to underflow and `ts_subtree__write_to_string` returns a gigantic size which the succeeding malloc will refuse to allocate.
2021-11-12 20:52:15 +01:00
..
binding_rust Restructure test suite's allocation recording so that tests can run in parallel 2021-10-11 17:24:37 -07:00
binding_web fix(wasm): Fix predicates in alternations, resolves #1392 2021-09-21 21:13:41 +03:00
include/tree_sitter Tweak comment formatting in api.h so bindgen doesn't create a doctest 2021-10-11 17:23:44 -07:00
src Don't use zero maxlen for snprintf in ts_subtree__write_to_string 2021-11-12 20:52:15 +01:00
.ccls rust: Change QueryCursor::captures to expose the full match 2019-10-03 12:45:58 -07:00
Cargo.toml libs: 0.20.0 2021-06-29 17:18:22 -07:00
README.md lib: remove utf8proc dependency (#436) 2019-10-14 11:18:39 -07:00

Subdirectories

  • src - C source code for the Tree-sitter library
  • include - C headers for the Tree-sitter library
  • binding_rust - Rust bindings to the Tree-sitter library
  • binding_web - JavaScript bindings to the Tree-sitter library, using WebAssembly