v1.5.6.4
What's Changed
Bug Fix
-
Fixed a memory leak when using
Zstd.decompress()
.
In versions1.5.6.2
and1.5.6.3
, the context (ZSTD_DCtx
) does not released after the decompression process was completed. This PR #81 addresses that issue. -
Resolved a crash when using
Zstd.compress()
.
In versions1.5.6.2
and1.5.6.3
,Zstd.compress()
internally usedZSTD_compressStream2
, but it was crashing due to incomplete consumption of the internal buffer when large bytes were received.Zstd.compress()
now usesZSTD_compress2
instead ofZSTD_compressStream2
to ensure it doesn’t crash when processing large bytes.
If you are using versions v1.5.6.2 or v1.5.6.3, please update to version v1.5.6.4.
Full Changelog: v1.5.6.3...v1.5.6.4