[issue14398] bz2.BZ2DEcompressor.decompress fail on large files
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
stage: -> needs patch
Added file: http://bugs.python.org/file25015/testbz2.py
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list