Comment 11 for bug 1851499

Revision history for this message
Michail (msaf1980) wrote :

Hello. Bug was found when work on commpression in carbon-c-relay

https://github.com/msaf1980/carbon-c-relay/tree/fix_compress

For reproduce

$
git clone https://github.com/msaf1980/carbon-c-relay
cd carbon-c-relay
git checkout fix_compress

autoreconf -fi
./configure -with-lz4 --without-gzip --without-snappy --without-ssl
make clean
make -j 4 test

LZ4F_resetDecompressionContext is required for recovery lz4 decompression context after try to decompress imcomplete block in frame.

If you need see a segfault, comment call LZ4F_resetDecompressionContext(strm->hdl.lz4.lz) at dispatcher.c:381