Memory safety - #17
Conversation
…h decompress utilities. Fixes #16.
|
Verified — this branch fixes the benchmarked case from #16. Method. Built this branch at Results — the real EPT-node fixture from #16 (289,466 B; header reads 39,207 points × 29 B records) ×200 iterations, after the harness's common 50-iteration warmup; Node v26.3.0, macOS arm64:
Small fixture (5,894 B) ×2000: 0 B leaked, 4000/4000 mallocs/frees. On output correctness: within each run the harness asserts the real exported On the ordering question from #16. The issue flagged the free-before- One thing we hit while verifying, mentioned only because you said a release is coming: the built Thanks for the fast turnaround on this. |
decompressFile, analogous to the correctdecompressChunkbehaviordecompressChunkanddecompressFileallocate within thetryblock so that both are exception-safe without leakingFixes #16.