]> git.ipfire.org Git - thirdparty/xz.git/commit
liblzma: Update lzma_lzip_decoder() docs about trailing data
authorLasse Collin <lasse.collin@tukaani.org>
Mon, 21 Apr 2025 09:23:37 +0000 (12:23 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Mon, 21 Apr 2025 09:23:37 +0000 (12:23 +0300)
commit516b90f6e1beb243dd76adc82da0ee47e525f863
treea244cd162eae3df69fe5d49c5d9bd588378b0c05
parentc330220d47dc09a5bab805d22654c8c0a73d21a9
liblzma: Update lzma_lzip_decoder() docs about trailing data

Don't say that the .lz format allows trailing data. According to the
lzip 1.25 manual, trailing data isn't part of the file format at all.
However, tools are still expected to behave as usefully as possible
when there is trailing data.

Fix the description of lzip >= 1.20 behavior when some of the first
bytes of trailing data match the magic bytes. While the lzip 1.25 manual
recommends that none of the first four bytes in trailing data should
match the magic bytes, the default behavior of lzip 1.25 treats
trailing data as a corrupt member header only if two or three bytes
match the magic bytes; one matching byte isn't enough.

Reported-by: Antonio Diaz Diaz
Link: https://www.mail-archive.com/xz-devel@tukaani.org/msg00702.html
src/liblzma/api/lzma/container.h