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 = self.fileobj.read(self.blocksize) data = self.bz2obj.decompress(raw) b.append(data) except EOFError: break if it ever goes here (after finishing reading header) and data is truncated, fileobj.read() will return 0 and data will be '' and so on forever. ---------- components: Library (Lib) messages: 80567 nosy: fijal severity: normal status: open title: tarfile loops forever on broken input versions: Python 2.4, Python 2.5, Python 2.6, Python 2.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5068> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com