tree-sitter/lib
Riley Bruins 81e7410b78 fix(rust): prevent overflow in error message calculation
**Problem:** When encountering an invalid symbol at the beginning of the
file, the rust bindings attempt to index the character at position -1 of
the query source, which leads to an overflow and thus invalid character
index which causes a panic.

**Solution:** Bounds check the offset before performing the subtraction.

(cherry picked from commit dff828cdbe)
2025-07-25 12:14:35 +02:00
..
binding_rust fix(rust): prevent overflow in error message calculation 2025-07-25 12:14:35 +02:00
binding_web 0.25.8 2025-07-13 20:32:42 +02:00
include/tree_sitter fix(lib): remove duplicate TSLanguageMetadata typedef (#4268) 2025-03-06 23:48:22 +01:00
language tree-sitter-language 0.1.5 2025-02-17 19:47:40 -08:00
src fix(lib): add wasm32 support to portable/endian.h (#4607) 2025-07-14 19:30:38 +02:00
.ccls rust: Change QueryCursor::captures to expose the full match 2019-10-03 12:45:58 -07:00
Cargo.toml build(deps): bump wasmtime-c-api to v29.0.1 2025-01-26 12:45:15 -05:00
CMakeLists.txt 0.25.8 2025-07-13 20:32:42 +02:00
README.md docs: update badges; fix markdown lint complains 2023-04-16 23:39:08 +03:00
tree-sitter.pc.in build(lib): build using cmake 2024-09-07 18:38:05 -04: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