1
0
Fork 0

Make libmat2 more robust against corrupted zip files

This commit is contained in:
jvoisin 2021-12-13 19:44:44 +01:00
parent e312868c4e
commit 01b39aa68c
1 changed files with 1 additions and 1 deletions

View File

@ -388,7 +388,7 @@ class ZipParser(ArchiveBasedAbstractParser):
try:
with zipfile.ZipFile(self.filename):
pass
except zipfile.BadZipFile:
except (zipfile.BadZipFile, OSError):
raise ValueError
@staticmethod