Welcome to Web-News
A Web-based News Reader
Subject std.zlib.decompress may have flawed logic for allocating buffer
From Lynn A. <Lynn_member@pathlink.com>
Date Mon, 30 Aug 2004 11:21:40 +0000 (UTC)
Newsgroups digitalmars.D.bugs

It appears there may be a bug in std.zlib.uncompress. The size of the output
buffer is apparently estimated from the size of the input, and can be inadequate
when the decompression ratio is over 2x.

Rather than repeat other info, there is discussion in the following thread from
the digitalmars.d newsgroup:
"Having problems with uncompress of zip file created by std.zlib"

There is a corresponding thread that is more specific about the uncompress
behavior, and has more info (including code) at:
http://dsource.org/forums/viewtopic.php?t=321

HTH,
Lynn A.



Recent messages in this thread
 
-# std.zlib.decompress may have flawed logic for allocating buffer (Current message) Lynn A. 30-Aug-2004 07:21 am
.-# Re: std.zlib.decompress may have flawed logic for allocating buffer Sean Kelly 31-Aug-2004 12:40 pm
..-# Re: std.zlib.decompress may have flawed logic for allocating buffer Dave 31-Aug-2004 10:02 pm
...-# Re: std.zlib.decompress may have flawed logic for allocating buffer Lynn 01-Sep-2004 08:26 am
...|-# Re: std.zlib.decompress may have flawed logic for allocating buffer Dave 01-Sep-2004 11:06 am
...|.\# Re: std.zlib.decompress may have flawed logic for allocating buffer Lynn Allan 01-Sep-2004 04:04 pm
...-# Re: std.zlib.decompress may have flawed logic for allocating buffer Sean Kelly 01-Sep-2004 12:45 pm
...|-# Re: std.zlib.decompress may have flawed logic for allocating buffer Dave 01-Sep-2004 01:55 pm
...|.-# Re: std.zlib.decompress may have flawed logic for allocating buffer Dave 02-Sep-2004 10:58 am
...|..-# Re: std.zlib.decompress may have flawed logic for allocating buffer Sean Kelly 02-Sep-2004 12:44 pm
...|...\# Re: std.zlib.decompress may have flawed logic for allocating buffer Lynn Allan 02-Sep-2004 02:07 pm
...\# Re: std.zlib.decompress may have flawed logic for allocating buffer Lynn Allan 01-Sep-2004 04:51 pm