Skip to content

Commit

Permalink
Gracefully handle PermissionError exceptions that crash fuzzer
Browse files Browse the repository at this point in the history
Fuzzing inputs sometimes produce directory paths that are protected
inside the fuzzer execution environment. This is not an issue in
GitPython's code, so it should not crash the fuzzer.

Fixes OSS-Fuzz Issue 69456:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=69870
  • Loading branch information
DaveLak committed Aug 9, 2024
1 parent a621ff0 commit 096851b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fuzzing/fuzz-targets/fuzz_submodule.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ def TestOneInput(data):
IsADirectoryError,
NotADirectoryError,
BrokenPipeError,
PermissionError,
):
return -1
except Exception as e:
Expand Down

0 comments on commit 096851b

Please sign in to comment.