[New-bugs-announce] [issue5068] tarfile loops forever on broken input
Maciek Fijalkowski
report at bugs.python.org
Mon Jan 26 12:08:31 CET 2009
New submission from Maciek Fijalkowski <fijal at 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 <report at bugs.python.org>
<http://bugs.python.org/issue5068>
_______________________________________
More information about the New-bugs-announce
mailing list