[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 ve

[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 ___

[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ù : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

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

2011-08-20 Thread Michele Orrù
Michele Orrù 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 : -- versions: +Python 3.3 -Python 2.7, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list U

[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 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: behavior -> feature request

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

2009-08-14 Thread STINNER Victor
STINNER Victor added the comment: First, gzip should use its own errors: this issue depends on #6584. -- nosy: +haypo ___ Python tracker ___ _

[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 : 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 self._load()#