[issue16411] zlib.Decompress.decompress() retains pointer to input buffer without acquiring reference to it

2012-11-10 Thread Nadeem Vawda
Nadeem Vawda added the comment: Ah, that's much nicer than either of my ideas. Patch committed. Thanks! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker _

[issue16411] zlib.Decompress.decompress() retains pointer to input buffer without acquiring reference to it

2012-11-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset be40a10d553a by Nadeem Vawda in branch '2.7': Fix typo in backporting fix of issue #16411 to 2.7. http://hg.python.org/cpython/rev/be40a10d553a -- ___ Python tracker _

[issue16411] zlib.Decompress.decompress() retains pointer to input buffer without acquiring reference to it

2012-11-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset c3828831861c by Nadeem Vawda in branch '2.7': Issue #16411: Fix a bug where zlib.decompressobj().flush() might try to access previously-freed memory. http://hg.python.org/cpython/rev/c3828831861c New changeset a1db815d0829 by Nadeem Vawda in branch

[issue16411] zlib.Decompress.decompress() retains pointer to input buffer without acquiring reference to it

2012-11-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue16411] zlib.Decompress.decompress() retains pointer to input buffer without acquiring reference to it

2012-11-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The decompressor does not hold a reference to the data object, but it holds a reference to the data. It's the unconsumed_tail attribute. The patch is simple. -- keywords: +patch Added file: http://bugs.python.org/file27891/issue16411.patch _

[issue16411] zlib.Decompress.decompress() retains pointer to input buffer without acquiring reference to it

2012-11-04 Thread Nadeem Vawda
New submission from Nadeem Vawda: When calling zlib.Decompress.decompress() with a max_length argument, if the input data is not full consumed, the next_in pointer in the z_stream struct are left pointing into the data object, but the decompressor does not hold a reference to this object. This sa