www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18773] New: Constraints on buffer re-use for std.zlib should

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

          Issue ID: 18773
           Summary: Constraints on buffer re-use for std.zlib should be
                    documented.
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: briancschott gmail.com

The Compress and UnCompress classes have undocumented restrictions on when the
buffers passed to their `compress` and `uncompress` methods can be re-used.
This needs to be fixed so that people are not accidentally creating or reading
corrupted data.

--
Apr 17 2018