[issue3790] in zlib decompressor objects, unused_data and unconsumed_tail must be immutable
report at bugs.python.org
Sat Sep 6 02:16:31 CEST 2008
New submission from Antoine Pitrou <pitrou at free.fr>:
Currently (in py3k), the attributes "unused_data" and "unconsumed_tail"
on zlib decompressor objects are bytearrays. This can wreak havoc in the
read() method of ZipInfo objects, because one of those bytearrays is
assigned to the internal "rawbuffer" and then extended using "+="...
leading to wrong results (right now I can only reproduce it on a 3.5 GB
zip file, sorry :-( ).
Here is a patch.
components: Extension Modules
keywords: needs review, patch, patch
title: in zlib decompressor objects, unused_data and unconsumed_tail must be immutable
versions: Python 3.0
Added file: http://bugs.python.org/file11403/zlib_unconsumed_tail.patch
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list