[Top][All Lists]

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

Re: [Lzip-bug] LZ_decompress_finished before LZ_decompress_read

From: Jacob Rief
Subject: Re: [Lzip-bug] LZ_decompress_finished before LZ_decompress_read
Date: Fri, 4 Dec 2009 00:18:46 +0100

Hello Antonio,

>> this is OK, but LZ_decompress_finished only returns 1 after
>> LZ_decompress_read has returned with -1, setting LZ_decompress_errno
>> to LZ_header_error.
> Are you feeding any trailing garbage to LZ_decompress_write? Lzlib can
> decompress concatenated lzip members (compressed data sets). So, if it finds
> more data after the end of a member, it will try to decode a new header.

For some stupid reasons, there was trailing garbage in the stream.
Using hexedit one can check that the last 16 Bytes in the stream must be
two little endian encoded 64bit integers.

So, this helped me to solve this problem, however I am still struggling with

Thanks and Regards, Jacob

reply via email to

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