lzip-bug
[Top][All Lists]
Advanced

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

Re: [Lzip-bug] response to decoder error by lzip-1.2-pre3


From: Antonio Diaz Diaz
Subject: Re: [Lzip-bug] response to decoder error by lzip-1.2-pre3
Date: Tue, 09 Dec 2008 01:41:16 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.7.11) Gecko/20050905

Hello John,

John Reiser wrote:
When decompressing, it seems that lzip-1.2-pre3 does not write
the partial output buffer upon encountering an error in the compressed
input.

Lzip currently behaves like bzip2. I plan to implement an option in lzip (--ignore-errors) to do more or less what you want, write the partially decoded data and don't remove the input file. This way, if what is damaged is the file trailer, the correct uncompressed data can be recovered.


Also notice that there was no error recovery.  The second half of the
compressed data file bar.lz contains an intact and correct compressed
stream of foo.lz, but this was not found and was not decoded.

For error recovery of concatenated compressed files I plan to write a "lzrecover" utility, more or less like the bzip2recover of bzip2.


In particular, consider the Z_FULL_FLUSH parameter of zlib.h.  This
is exactly what I want.

I also plan to write a library able of doing the equivalent of Z_FULL_FLUSH. Lzip will then be modified to make it able to decompress such files.


Best regards,
Antonio.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]