Skip to content

Commit b630eaf

Browse files
authored
Merge pull request #1952 from DaveLak/fuzzing/issues/71095
Fuzzing: Gracefully Handle Uninteresting Error to Fix OSS-Fuzz Issue
2 parents e57cc2c + 7126ce1 commit b630eaf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fuzzing/fuzz-targets/fuzz_submodule.py

+2
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ def TestOneInput(data):
8484
except Exception as e:
8585
if isinstance(e, ValueError) and "embedded null byte" in str(e):
8686
return -1
87+
elif isinstance(e, OSError) and "File name too long" in str(e):
88+
return -1
8789
else:
8890
return handle_exception(e)
8991

0 commit comments

Comments
 (0)