[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Adding support for LZIP to dpkg, using that instead of xz, archive wide



* Antonio Diaz Diaz <antonio@gnu.org>, 2015-07-27, 19:11:
"Lzip will correctly decompress a file which is the concatenation of two or more compressed files. The result is the concatenation of the corresponding uncompressed files. Integrity testing of concatenated compressed files is also supported."

Whatever follows a file that is not a valid header is classified as "trailing garbage" and ignored.

Sounds like a serious design flaw that could lead to data loss.

The attached files differ only by one bit. The output for the corrupted file is truncated, yet there is no error or warning:

$ cmp -l good.lz corrupted.lz
41 114 115

$ lzip -d < good.lz; echo $?
foo
bar
0

$ lzip -d < corrupted.lz; echo $?
foo
0


Xz has broken with this tradition

Glad to hear that.

--
Jakub Wilk

Attachment: good.lz
Description: Binary data

Attachment: corrupted.lz
Description: Binary data


Reply to: