Skip to content

Commit

Permalink
abort
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Jan 8, 2025
1 parent c86da23 commit e6e5bb3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Tests/oss-fuzz/fuzzers.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ def fuzz_image(data: bytes) -> None:
# This will fail on some images in the corpus, as we have many
# invalid images in the test suite.
print("torch", ImageFile.LOAD_TRUNCATED_IMAGES)
if ImageFile.LOAD_TRUNCATED_IMAGES:
print("torchabort")
import sys
sys.exit()
with Image.open(io.BytesIO(data)) as im:
im.rotate(45)
im.filter(ImageFilter.DETAIL)
Expand Down

0 comments on commit e6e5bb3

Please sign in to comment.