rabbitmq / lz4-erlang

LZ4 compression library for Erlang.
Other
19 stars 8 forks source link

Fix infinite loop when decode data with broken lz4 header #14

Closed outddd closed 2 years ago

outddd commented 2 years ago

we need check result LZ4F_decompress, not dstSize, because it always 0, when lz4 data/header is broken and it generates infinite cycle with reallocs memory