[issue14398] bz2.BZ2DEcompressor.decompress fail on large files

Nadeem Vawda report at bugs.python.org
Sat Mar 24 18:33:47 CET 2012


Nadeem Vawda <nadeem.vawda at gmail.com> added the comment:

I have been able to reproduce it; see attached script. It happens for
inputs of 2GB (decompressed), but not for ones of 1GB.

It seems that bz2module.c doesn't guard against 32-bit overflows when
handling the size of the decompressed data. This affects both the
BZ2Decompressor object's decompress() method, and the module-level
decompress() function. All python versions prior to 3.3 are affected.

----------
assignee:  -> nadeem.vawda
components: +Extension Modules
nosy: +nadeem.vawda
stage:  -> needs patch
Added file: http://bugs.python.org/file25015/testbz2.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14398>
_______________________________________


More information about the Python-bugs-list mailing list