singularity-forge/native/crates/engine
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
..
src fix(native): resolve memory leaks in glob, ttsr, and image overflow (#2170) 2026-03-23 09:47:51 -06:00
build.rs feat: Rust native engine scaffold with grep module 2026-03-13 12:21:09 -06:00
Cargo.toml feat(web): browser-based web interface (#1717) 2026-03-21 12:16:54 -06:00