Movatterモバイル変換


[0]ホーム

URL:


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

Commitbf2a112

Browse files
authored
Fix order of environment setup and git module import
The environment setup must happen before the `git` module is imported, otherwise GitPython won't be able to find the Git executable and raise an exception that causes the ClusterFuzz fuzzer runs to fail.
1 parent27de867 commitbf2a112

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎fuzzing/fuzz-targets/fuzz_submodule.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
importos
44
importtempfile
55
fromconfigparserimportParsingError
6-
fromgitimportRepo,GitCommandError,InvalidGitRepositoryError
76
fromutilsimport (
87
setup_git_environment,
98
handle_exception,
@@ -12,7 +11,7 @@
1211

1312
# Setup the git environment
1413
setup_git_environment()
15-
14+
fromgitimportRepo,GitCommandError,InvalidGitRepositoryError
1615

1716
defTestOneInput(data):
1817
fdp=atheris.FuzzedDataProvider(data)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp