On 2025-04-19 Antonio Diaz Diaz wrote:
> Lasse Collin wrote:
> > On the other hand, I suppose the equivalent note in the liblzma
> > documentation should be preserved or updated to mention that it's
> > not fully lzlib compatible.
>
> I had not considered the compatibility between liblzma and lzlib
> because of the difference of formats, but I agree with you that it is
> useful to mention in the documentation such incompatibility. On the
> positive side, I guess that liblzma can decompress all .lz files
> (instead of "almost all").
>
> I suggest to remove from container.h the text in the attached patch
> and maybe replace it with a mention to the incompatibility between
> liblzma and lzlib respect to the sync flush marker.
I had already committed and pushed the following on 2025-04-17. It
includes the lzlib note as well.
https://git.tukaani.org/?p=xz.git;a=commitdiff;h=dd006a67e593cb5d3dec5180face7e3010fe78da
> The lzip format specification neither allows nor forbids trailing
> data. Trailing data just happen.
[...]
> lzip >= 1.20 considers these by default:
> 4 matches with lzip_magic -> good header
> 2 or 3 matches with lzip_magic -> corrupt header
> 0 or 1 matches with lzip_magic -> trailing data
I have pushed a documentation fix for these.
https://git.tukaani.org/?p=xz.git;a=commitdiff;h=516b90f6e1beb243dd76adc82da0ee47e525f863
Thanks!
--
Lasse Collin