Nadeem Vawda <nadeem.va...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue14398> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com