[issue5068] tarfile loops forever on broken input

2009-03-22 Thread Lars Gustäbel
Lars Gustäbel l...@gustaebel.de added the comment: I just checked in a fix for the problem, r70523-70527. Thank you very much for your report. -- resolution: - fixed status: open - closed versions: +Python 2.5 ___ Python tracker

[issue5068] tarfile loops forever on broken input

2009-01-26 Thread Maciek Fijalkowski
New submission from Maciek Fijalkowski fi...@genesilico.pl: I have troubles actually finding such a file, but I encountered it at least once (file is gone by now though). The lines in question are for bz2 compression: in _BZ2Proxy.read: try: raw =

[issue5068] tarfile loops forever on broken input

2009-01-26 Thread Lars Gustäbel
Changes by Lars Gustäbel l...@gustaebel.de: -- assignee: - lars.gustaebel nosy: +lars.gustaebel ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5068 ___

[issue5068] tarfile loops forever on broken input

2009-01-26 Thread Lars Gustäbel
Lars Gustäbel l...@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