[issue5068] tarfile loops forever on broken input

Lars Gustäbel report at bugs.python.org
Mon Jan 26 20:25:51 CET 2009


Lars Gustäbel <lars at gustaebel.de> added the comment:

Thanks for the report. The problem is in fact easy to reproduce.
_BZ2Proxy hangs if it is passed a file object with either no data or
with a partial bzipped file. For example try:

tarfile.open(mode="r:bz2", fileobj=StringIO.StringIO())

I will create a decent fix for that problem, but not before next week. I
am too busy doing other important stuff ATM.

----------
versions: +Python 3.0, Python 3.1 -Python 2.4, Python 2.5

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


More information about the Python-bugs-list mailing list