Skip to content

Navigation Menu

Sign in
Appearance settings

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

Sign up
Appearance settings

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

‎fuzzing/fuzz-targets/fuzz_submodule.py‎

Lines changed: 1 addition & 0 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /