Hello Hampa,

Hampa Hug wrote:
Splitting an lzip file using 'lziprecover -s' is currently
broken. This is because File_index::File_index() moves the file
offset of the input file. In do_split_file() the read buffer is
filled before File_index::File_index() is called and subsequent
reads continue at the wrong position. The attached patch fixes
this by moving the call to File_index::File_index() before the
call to seek_read().

Thank you very much for reporting this.

It is in fact a stupid bug introduced in version 1.16 that the testsuite didn't caught because the test file was smaller than the buffer size.

I'll release a fixed version today.


Best regards,
Antonio.

_______________________________________________
Lzip-bug mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lzip-bug

Reply via email to