singularity-forge/native/crates
Juan Francisco Lebrero efebd29857 fix(native): resolve memory leaks in glob, ttsr, and image overflow (#2170)
Address three critical safety issues found during codebase audit:

- glob.rs: Explicitly drop ThreadsafeFunction after glob operation
  completes to release the N-API reference immediately instead of
  relying on implicit drop ordering.

- ttsr.rs: Add handle bounds validation in ttsrCheckBuffer, recover
  from mutex poisoning via unwrap_or_else instead of returning errors,
  cap live handles at 10,000 to prevent unbounded growth, and add
  ttsrClearAll for bulk cleanup.

- image.rs: Replace unchecked (w * h * N) as usize casts with
  checked_mul arithmetic that returns a descriptive error instead of
  panicking on overflow.
2026-03-23 09:47:51 -06:00
..
ast feat: add native ast module with ast-grep structural search and rewrite 2026-03-13 13:02:29 -06:00
engine fix(native): resolve memory leaks in glob, ttsr, and image overflow (#2170) 2026-03-23 09:47:51 -06:00
grep feat: Rust native engine scaffold with grep module 2026-03-13 12:21:09 -06:00