DecompressionBombError is now an option

This commit is contained in:
Eric Soroos 2021-03-15 00:21:18 +01:00
parent 83dabda6b2
commit ad37e86c40

View File

@ -46,5 +46,9 @@ def test_fuzz_fonts(path):
if not path:
return
with open(path, "rb") as f:
fuzzers.fuzz_font(f.read())
try:
fuzzers.fuzz_font(f.read())
except (Image.DecompressionBombError,
Image.DecompressionBombWarning):
pass
assert True