inikep / lizard

Lizard (formerly LZ5) is an efficient compressor with very fast decompression. It achieves compression ratio that is comparable to zip/zlib and zstd/brotli (at low and medium compression levels) at decompression speed of 1000 MB/s and faster.
Other
644 stars 40 forks source link

calling LZ5_compress_default causes crash #4

Closed GregSlazinski closed 7 years ago

GregSlazinski commented 8 years ago

Default stack size on Windows is 1 MB and size of LZ5_stream_t exceeds that limit I had to change:

define HEAPMODE 0

to

define HEAPMODE 1

in order to prevent crashes.

I suggest this should be set to 1 by default

inikep commented 7 years ago

Thanks for reporting. It's fixed here: https://github.com/inikep/lz5/commit/229b6b70266c15ef061b0a031a79dab91585fac7