summaryrefslogtreecommitdiffstatshomepage
path: root/tests/scanner/data/bad/bad_compression.zip (unfollow)
Commit message (Collapse)AuthorLines
13 daysbackend: Handle corrupt zip filesWolfgang Müller-0/+0
Corrupt zip files would already make hircine throw an error, but depending on the exact problem it would not report which file (or even which entry in a zip file) is affected. Use ZipFile.testzip() to catch common problems and make sure to re-raise any exception within as a BadZipFile exception. This makes sure to also report decompression problems that are raised as a zlib.error exception, for example.