[Issue 3191] std.zlib.UnCompress errors if buffer is reused
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Jul 11 14:21:10 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=3191
Justin Whear <justin at economicmodeling.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |justin at economicmodeling.com
--- Comment #3 from Justin Whear <justin at economicmodeling.com> ---
The DEFLATE decompression algorithm relies on the results of previous blocks,
as it tries to reuse the encoding tree. From the RFC: "Note that a duplicated
string reference may refer to a string in a previous block; i.e., the backward
distance may cross one or more block boundaries. However a distance cannot
refer past the beginning of the output stream."
(http://www.w3.org/Graphics/PNG/RFC-1951#huffman)
So I think the bug should be clarified to this function allowing block reuse in
the first place.
--
More information about the Digitalmars-d-bugs
mailing list