[issue19839] bz2: regression wrt supporting files with trailing garbage after EOF

2013-12-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset c5349a560703 by Nadeem Vawda in branch '3.3': #19839: Fix regression in bz2 module's handling of non-bzip2 data at EOF. http://hg.python.org/cpython/rev/c5349a560703 New changeset bec2033ee2ec by Nadeem Vawda in branch '3.3': #19839: Fix lzma module

[issue19839] bz2: regression wrt supporting files with trailing garbage after EOF

2013-12-01 Thread Nadeem Vawda
Nadeem Vawda added the comment: I'll have a patch for this in the next couple of days (and a similar one for the lzma module, which has the same issue (even though it's not a regression in that case)). In the meanwhile, you can work around this by feeding the compressed data to a BZ2Decompressor

[issue19839] bz2: regression wrt supporting files with trailing garbage after EOF

2013-11-30 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- keywords: +3.2regression priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue19839] bz2: regression wrt supporting files with trailing garbage after EOF

2013-11-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: decompress() is affected too. >>> import bz2 >>> bz2.decompress(bz2.compress(b'abcd') + b'xyz') Traceback (most recent call last): File "", line 1, in File "/home/serhiy/py/cpython/Lib/bz2.py", line 505, in decompress results.append(decomp.decompress(

[issue19839] bz2: regression wrt supporting files with trailing garbage after EOF

2013-11-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +nadeem.vawda, serhiy.storchaka type: crash -> behavior versions: +Python 3.4 ___ Python tracker ___ __

[issue19839] bz2: regression wrt supporting files with trailing garbage after EOF

2013-11-30 Thread Fabio Erculiani
New submission from Fabio Erculiani: In Sabayon Linux and Gentoo Linux, distro package metadata is appended at the end of bz2 files. Python 2.7, 3.1, 3.2 bz2 modules were handling the following attached file just fine, trailing garbage was simply ignored like the bunzip2 utility does. example

[issue19839] bz2: regression wrt supporting files with trailing garbage after EOF

2013-11-30 Thread Fabio Erculiani
Changes by Fabio Erculiani : -- type: -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py