]> granicus.if.org Git - python/commit
Issue #5068: Fixed the tarfile._BZ2Proxy.read() method that would loop
authorLars Gustäbel <lars@gustaebel.de>
Sun, 22 Mar 2009 20:48:03 +0000 (20:48 +0000)
committerLars Gustäbel <lars@gustaebel.de>
Sun, 22 Mar 2009 20:48:03 +0000 (20:48 +0000)
commit7623294cb76b23d63df2858df71072721bf409cc
tree1795e28745da5abb35df75897f63894bbe325f99
parentf73bf859425040d2d27499ae89bc229fb5496b00
Issue #5068: Fixed the tarfile._BZ2Proxy.read() method that would loop
forever on incomplete input. That caused tarfile.open() to hang when used
with mode 'r' or 'r:bz2' and a fileobj argument that contained no data or
partial bzip2 compressed data.

(backported from r70523)
Lib/tarfile.py
Lib/test/test_tarfile.py
Misc/NEWS