| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 82bb3bb commit dac3535
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -23,15 +23,15 @@ | |||
| 23 | 23 | import os | |
| 24 | 24 | from configparser import MissingSectionHeaderError, ParsingError | |
| 25 | 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 | + | ||
| 26 | 30 | with atheris.instrument_imports(): | |
| 27 | 31 | import git | |
| 28 | 32 | ||
| 29 | 33 | ||
| 30 | 34 | def TestOneInput(data): | |
| 31 | - if getattr(sys, "frozen", False) and hasattr(sys, "_MEIPASS"): | ||
| 32 | - path_to_bundled_git_binary = os.path.abspath(os.path.join(os.path.dirname(__file__), "git")) | ||
| 33 | - git.refresh(path_to_bundled_git_binary) | ||
| 34 | - | ||
| 35 | 35 | sio = io.BytesIO(data) | |
| 36 | 36 | sio.name = "/tmp/fuzzconfig.config" | |
| 37 | 37 | git_config = git.GitConfigParser(sio) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -23,15 +23,15 @@ | |||
| 23 | 23 | import os | |
| 24 | 24 | import shutil | |
| 25 | 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 | + | ||
| 26 | 30 | with atheris.instrument_imports(): | |
| 27 | 31 | import git | |
| 28 | 32 | ||
| 29 | 33 | ||
| 30 | 34 | def TestOneInput(data): | |
| 31 | - if getattr(sys, "frozen", False) and hasattr(sys, "_MEIPASS"): | ||
| 32 | - path_to_bundled_git_binary = os.path.abspath(os.path.join(os.path.dirname(__file__), "git")) | ||
| 33 | - git.refresh(path_to_bundled_git_binary) | ||
| 34 | - | ||
| 35 | 35 | fdp = atheris.FuzzedDataProvider(data) | |
| 36 | 36 | git_dir = "/tmp/.git" | |
| 37 | 37 | head_file = os.path.join(git_dir, "HEAD") | |
| Back | FazBrowse Home | New Git URL |
0 commit comments