| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 1bc9a1a commit 576a858
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -47,3 +47,6 @@ output.txt | |||
| 47 | 47 | ||
| 48 | 48 | # Finder metadata | |
| 49 | 49 | .DS_Store | |
| 50 | + | ||
| 51 | + # Files created by OSS-Fuzz when running locally | ||
| 52 | + fuzz_*.pkg.spec | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -134,8 +134,10 @@ containers. | |||
| 134 | 134 | Set environment variables to simplify command usage: | |
| 135 | 135 | ||
| 136 | 136 | ```shell | |
| 137 | - export SANITIZER=address # Can be either 'address' or 'undefined'. | ||
| 138 | - export FUZZ_TARGET=fuzz_config # specify the fuzz target without the .py extension. | ||
| 137 | + # $SANITIZER can be either 'address' or 'undefined': | ||
| 138 | + export SANITIZER=address | ||
| 139 | + # specify the fuzz target without the .py extension: | ||
| 140 | + export FUZZ_TARGET=fuzz_config | ||
| 139 | 141 | ``` | |
| 140 | 142 | ||
| 141 | 143 | #### Build and Run | |
@@ -149,6 +151,19 @@ python infra/helper.py build_image gitpython | |||
| 149 | 151 | python infra/helper.py build_fuzzers --sanitizer $SANITIZER gitpython | |
| 150 | 152 | ``` | |
| 151 | 153 | ||
| 154 | + > [!TIP] | ||
| 155 | + > The `build_fuzzers` command above accepts a local file path pointing to your gitpython repository clone as the last | ||
| 156 | + > argument. | ||
| 157 | + > This makes it easy to build fuzz targets you are developing locally in this repository without changing anything in | ||
| 158 | + > the OSS-Fuzz repo! | ||
| 159 | + > For example, if you have cloned this repository (or a fork of it) into: `~/code/GitPython` | ||
| 160 | + > Then running this command would build new or modified fuzz targets using the `~/code/GitPython/fuzzing/fuzz-targets` | ||
| 161 | + > directory: | ||
| 162 | + > ```shell | ||
| 163 | + > python infra/helper.py build_fuzzers --sanitizer $SANITIZER gitpython ~/code/GitPython | ||
| 164 | + > ``` | ||
| 165 | + | ||
| 166 | + | ||
| 152 | 167 | Verify the build of your fuzzers with the optional `check_build` command: | |
| 153 | 168 | ||
| 154 | 169 | ```shell | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,7 +13,7 @@ find "$SEED_DATA_DIR" \( -name '*_seed_corpus.zip' -o -name '*.options' -o -name | |||
| 13 | 13 | -exec cp {} "$OUT" \; | |
| 14 | 14 | ||
| 15 | 15 | # Build fuzzers in $OUT. | |
| 16 | - find "$SRC" -name 'fuzz_*.py' -print0 | while IFS= read -r -d $'\0' fuzz_harness; do | ||
| 16 | + find "$SRC/gitpython/fuzzing" -name 'fuzz_*.py' -print0 | while IFS= read -r -d $'\0' fuzz_harness; do | ||
| 17 | 17 | compile_python_fuzzer "$fuzz_harness" | |
| 18 | 18 | ||
| 19 | 19 | common_base_dictionary_filename="$SEED_DATA_DIR/__base.dict" | |
| Back | FazBrowse Home | New Git URL |
0 commit comments