We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 82bb3bb + dac3535 commit 797009dCopy full SHA for 797009d
2 files changed
fuzzing/fuzz-targets/fuzz_config.py
@@ -23,15 +23,15 @@
23
import os
24
from configparser import MissingSectionHeaderError, ParsingError
25
26
+if getattr(sys, "frozen", False) and hasattr(sys, "_MEIPASS"):
27
+ path_to_bundled_git_binary = os.path.abspath(os.path.join(os.path.dirname(__file__), "git"))
28
+ os.environ["GIT_PYTHON_GIT_EXECUTABLE"] = path_to_bundled_git_binary
29
+
30
with atheris.instrument_imports():
31
import git
32
33
34
def TestOneInput(data):
- if getattr(sys, "frozen", False) and hasattr(sys, "_MEIPASS"):
- path_to_bundled_git_binary = os.path.abspath(os.path.join(os.path.dirname(__file__), "git"))
- git.refresh(path_to_bundled_git_binary)
-
35
sio = io.BytesIO(data)
36
sio.name = "/tmp/fuzzconfig.config"
37
git_config = git.GitConfigParser(sio)
fuzzing/fuzz-targets/fuzz_tree.py
import shutil
fdp = atheris.FuzzedDataProvider(data)
git_dir = "/tmp/.git"
head_file = os.path.join(git_dir, "HEAD")
0 commit comments