Issue 3830: Tarfile has incorrect USTAR "VERSION" field (should be 00; is 0 NUL) (original) (raw)

Issue3830

Created on 2008-09-10 22:32 by SunriseProgrammer, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg72993 - (view) Author: SunriseProgrammer (SunriseProgrammer) Date: 2008-09-10 22:32
The 'tarfile' object make incorrect header blocks. There's a USTAR 'MAGIC' string that's supposed to be followed by a version; that version is supposed to be two '0' (digit zero -- ascii 48) chars with no NUL padding at all. Python 2.4.3 has it correct. Later versions (e.g., 2.5) are carefully making the field NUL terminated -- but that's wrong; they aren't supposed to be. File History: 'tarfile.py' was correct in version 41340 and incorrect in version 45954
msg73009 - (view) Author: Lars Gustäbel (lars.gustaebel) * (Python committer) Date: 2008-09-11 08:34
This problem existed only in the first 2.5 release.
History
Date User Action Args
2022-04-11 14:56:39 admin set github: 48080
2008-09-11 08:34:21 lars.gustaebel set status: open -> closedresolution: works for memessages: +
2008-09-10 22:38:37 benjamin.peterson set assignee: lars.gustaebelnosy: + lars.gustaebel
2008-09-10 22:32:48 SunriseProgrammer create