Skip to content

Commit

Permalink
fixup! main: filter out malicious files when extracting tar archives
Browse files Browse the repository at this point in the history
  • Loading branch information
layday authored and henryiii committed Jun 13, 2023
1 parent 7db7118 commit 155efd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/build/_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def parse_wheel_filename(filename: str) -> re.Match[str] | None:
if sys.version_info < (3, 14) and hasattr(tarfile, 'data_filter'):

class TarFile(tarfile.TarFile):
extraction_filter = tarfile.data_filter
extraction_filter = staticmethod(tarfile.data_filter)

else:
TarFile = tarfile.TarFile

0 comments on commit 155efd8

Please sign in to comment.