[issue6669] TarFile.getmembers fails at struct.unpack: unpack requires a string argument of length 4

2021-11-19 Thread STINNER Victor
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.

[issue6669] TarFile.getmembers fails at struct.unpack: unpack requires a string argument of length 4

2021-11-12 Thread mike mcleod
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

[issue6669] TarFile.getmembers fails at struct.unpack: unpack requires a string argument of length 4

2012-12-03 Thread Serhiy Storchaka
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

[issue6669] TarFile.getmembers fails at struct.unpack: unpack requires a string argument of length 4

2011-08-24 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6669 ___ ___ Python-bugs-list

[issue6669] TarFile.getmembers fails at struct.unpack: unpack requires a string argument of length 4

2011-08-20 Thread Michele Orrù
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

[issue6669] TarFile.getmembers fails at struct.unpack: unpack requires a string argument of length 4

2011-07-22 Thread Terry J. Reedy
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 ___

[issue6669] TarFile.getmembers fails at struct.unpack: unpack requires a string argument of length 4

2009-08-14 Thread STINNER Victor
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

[issue6669] TarFile.getmembers fails at struct.unpack: unpack requires a string argument of length 4

2009-08-14 Thread R. David Murray
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:

[issue6669] TarFile.getmembers fails at struct.unpack: unpack requires a string argument of length 4

2009-08-07 Thread Sridhar Ratnakumar
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