|
From: | Antonio Diaz Diaz |
Subject: | Re: [Lzip-bug] size of decompression buffer |
Date: | Sat, 06 Dec 2008 19:42:13 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.7.11) Gecko/20050905 |
John Reiser wrote:
Knowing the length of the uncompressed data output at the beginning of decompression is useful to bound the length of the decompression buffer, and for noticing output overrun immediately.
Knowing the size of the uncompressed data at the beginning of compression would solve all our problems but, as it is impossible for pipes and unreliable for files, I do not plan to store it in the header.
The only way I see of circumventing this problem is overriding the dictionary size stored in the file header with a command line option:
lzip -d --force-dictionary-size 1MiB foo.lz Of course, a forced size too small will provoke a decompression error. Best regards, Antonio.
[Prev in Thread] | Current Thread | [Next in Thread] |