Skip to content

Commit

Permalink
Merge pull request #1952 from DaveLak/fuzzing/issues/71095
Browse files Browse the repository at this point in the history
Fuzzing: Gracefully Handle Uninteresting Error to Fix OSS-Fuzz Issue
  • Loading branch information
Byron committed Aug 13, 2024
2 parents e57cc2c + 7126ce1 commit b630eaf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fuzzing/fuzz-targets/fuzz_submodule.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ def TestOneInput(data):
except Exception as e:
if isinstance(e, ValueError) and "embedded null byte" in str(e):
return -1
elif isinstance(e, OSError) and "File name too long" in str(e):
return -1
else:
return handle_exception(e)

Expand Down

0 comments on commit b630eaf

Please sign in to comment.