Skip to content
Snippets Groups Projects
Commit 01b39aa6 authored by Julien (jvoisin) Voisin's avatar Julien (jvoisin) Voisin
Browse files

Make libmat2 more robust against corrupted zip files

parent e312868c
No related branches found
No related tags found
No related merge requests found
Pipeline #71648 passed with warnings
......@@ -388,7 +388,7 @@ class ZipParser(ArchiveBasedAbstractParser):
try:
with zipfile.ZipFile(self.filename):
pass
except zipfile.BadZipFile:
except (zipfile.BadZipFile, OSError):
raise ValueError
@staticmethod
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment