Skip to content

Commit 096851b

Browse files
committed
Gracefully handle PermissionError exceptions that crash fuzzer
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
1 parent a621ff0 commit 096851b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: fuzzing/fuzz-targets/fuzz_submodule.py

+1
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ def TestOneInput(data):
7878
IsADirectoryError,
7979
NotADirectoryError,
8080
BrokenPipeError,
81+
PermissionError,
8182
):
8283
return -1
8384
except Exception as e:

0 commit comments

Comments
 (0)