|
|
zlib 1.2.1: Z_DATA_ERROR with uncompress of larger mmap'ed files
Hi,
I am using zlib 1.2.1 the following way:
- Compress mmap'ed file with the "compress"-function.
The original size of the file is saved in the first 4 bytes of the
compressed file
- Decompress mmap'ed files with the "uncompress"-function
Everthing works fine, but if the compressed file is approximately larger
than 1 MB "uncompress" returns Z_DATA_ERROR. In the result file I can see
that zlib stops prematurely.
After digging around I suspect checksum problems or windows size problems
(windowBits parameter). Unfortunately I do not know how to set this
parameters.
I want continue to use mmap'ed files - not streams.
Any help would be greatly appreciated.
Martin
|
|
0
|
|
|
|
Reply
|
Martin
|
1/29/2004 3:07:30 PM |
|
"Martin Koppmann" <martin.koppmann@deutsche-software.de> wrote in message news:<bvb7jj$bi8$02$1@news.t-online.com>...
> - Compress mmap'ed file with the "compress"-function.
> The original size of the file is saved in the first 4 bytes of the
> compressed file
>
> - Decompress mmap'ed files with the "uncompress"-function
I recommend that you first get it working without mmap (and it will),
and then introduce mmap to see where the problem is.
mark
|
|
0
|
|
|
|
Reply
|
madler
|
1/30/2004 11:18:25 PM
|
|
|
1 Replies
404 Views
(page loaded in 0.154 seconds)
Similiar Articles:7/27/2012 4:33:48 PM
|
|
|
|
|
|
|
|
|