STINNER Victor added the comment:
File "/home/apy/ActivePython-2.6/lib/python2.6/gzip.py", line 24, in
read32
return struct.unpack("
Date: Tue Jan 22 17:01:59 2013 +0200
Issue #1159051: GzipFile now raises EOFError when reading a corrupted file
with truncated header or footer.
mike mcleod added the comment:
I would like to help with this issue.
I note that when I test against 3.10 this error does not show. Also, all tests
for test_tarfile pass.
I am wondering if it may be reasonable to close this due to the age and
currently its not an issue in the latest Python
Serhiy Storchaka added the comment:
See also related issue4844 and issue14315 for zipfile.
--
nosy: +serhiy.storchaka
versions: +Python 3.4 -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6669
Changes by Michele Orrù maker...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6669
___
___
Python-bugs-list
Michele Orrù maker...@gmail.com added the comment:
Would it be better to use TarError as Sridhar suggested, or create a new class
BadTarfile(TarError, IOError), following the convention used for gzip and
zipfile?
--
nosy: +maker
___
Python tracker
Changes by Terry J. Reedy tjre...@udel.edu:
--
versions: +Python 3.3 -Python 2.7, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6669
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
First, gzip should use its own errors: this issue depends on #6584.
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6669
R. David Murray rdmur...@bitdance.com added the comment:
Since 6584 is deemed (correctly, IMO) a feature request, this one must
be as well.
--
dependencies: +gzip module has no custom exception
keywords: +easy
nosy: +r.david.murray
priority: - normal
stage: - test needed
type:
New submission from Sridhar Ratnakumar sridh...@activestate.com:
Perhaps this must be wrapped under a programmer-expected custom
exception class (TarError maybe)
for tarinfo in tarfileobj.getmembers():
File /home/apy/ActivePython-2.6/lib/python2.6/tarfile.py, line
1791, in getmembers