8000 Merge pull request #1952 from DaveLak/fuzzing/issues/71095 · gitpython-developers/GitPython@b630eaf · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Lines changed: 2 additions & 0 deletions
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)
0