[Issue 3191] std.zlib.UnCompress errors if buffer is reused

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Sep 14 16:52:56 UTC 2017


https://issues.dlang.org/show_bug.cgi?id=3191

--- Comment #7 from github-bugzilla at puremagic.com ---
Commits pushed to master at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/5cf20bd8773e0f746c74b19137a03d699cdfe28b
Fixed issues 3191 and 9505

std.zlib.UnCompress.uncompress() now consumes as much of the input buffer as
possible and extends / reallocates the output buffer accordingly
It also sets inputEnded = 1 when Z_STREAM_END is returned from inflate() so
that
additional data after the compressed stream is not consumed

https://github.com/dlang/phobos/commit/8e47bfc54c106b222835db3c3a37e81b52ab2f04
Merge pull request #5720 from kas-luthor/fix-zlib

Fix zlib issues 3191, 9505 and 8779
merged-on-behalf-of: MetaLang <MetaLang at users.noreply.github.com>

--


More information about the Digitalmars-d-bugs mailing list