Compressed block of one sequence with matchlength token > 0 does not fail.
Author: mfranzrebsalCreated Jun 30, 2025Updated Feb 4, 2026
Hello!
When I pass a compressed block like: {0x54, 0x00, 0x00, 0x00, 0x00, 0x00} to the LZ4_decompress_safe function, it decompresses it without error, even though the matchlength should, strictly speaking, be zero. I haven't found anything in the block format description regarding this, is it allowed? Thank you for the help!
Source: lz4/lz4