tarfile_repro.py: Example of tarfile bug using arm gcc compiler tarfile
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=Nonecreated_at=<Date2022-04-05.18:15:20.584>labels= ['type-bug', 'library', '3.9', '3.10', '3.11']
title='TarFile.getmember cannot work on tar sourced directory over 100 characters'updated_at=<Date2022-04-05.22:06:10.413>user='https://github.com/cfernald'
A fix was made to unify handling of the trailing slash in TarFile.getmember related to https://bugs.python.org/issue21987. This change fixed the <100 character case, but made it so directories over 100 character which come from a tar file can no longer be accessed through getmember, even if returned from getnames. This appears to be because internal to tarfile, member names still include the trailing slash on directories over 100 characters but getmember will always remove the trailing slash from the provided name so the comparison will always fail.
A simple example of this is as follows using 3.10.4.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: