mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 10:46:16 +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:
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user