Skip to content

Commit

Permalink
fix: mistakes caught in code review
Browse files Browse the repository at this point in the history
  • Loading branch information
terriko committed Feb 8, 2024
1 parent a038a2d commit 0e91188
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cve_bin_tool/extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,8 @@ async def extract_file_tar(self, filename, extraction_path):

# FIXME: the backported fix is not working on windows.
# this leaves the current (unsafe) behaviour so we can fix at least one OS for now
if sys.platform == "win32":
elif sys.platform == "win32":
tar.extractall(path=extraction_path) # nosec
tar.close()

# Some versions may need us to implement a filter to avoid unsafe behaviour
# we could consider logging a warning here
Expand Down

0 comments on commit 0e91188

Please sign in to comment.