bergercookie / asm-lsp

Language server for NASM/GAS/GO Assembly
https://crates.io/crates/asm-lsp
BSD 2-Clause "Simplified" License
267 stars 18 forks source link

fix: Add range checks before all calls to tree-sitter's `utf8_text()` #157

Closed WillLillis closed 1 month ago

WillLillis commented 1 month ago

Still haven't had time to dig into the root cause of this, but in the meantime this PR places a bounds check before all calls to tree-sitter's .utf8_text() method. This should eliminate the related crashes.

Closes #154