mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-30 09:53:39 +03:00
DecompressionBombError is now an option
This commit is contained in:
parent
83dabda6b2
commit
ad37e86c40
|
@ -46,5 +46,9 @@ def test_fuzz_fonts(path):
|
||||||
if not path:
|
if not path:
|
||||||
return
|
return
|
||||||
with open(path, "rb") as f:
|
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
|
assert True
|
||||||
|
|
Loading…
Reference in New Issue
Block a user