Debian Codegraph @

fuzzing/oss-fuzz-scripts/build.sh

raw
1 # shellcheck shell=bash
2 # https://google.github.io/oss-fuzz/getting-started/new-project-guide/#buildsh-script-environment
3
4 set -euo pipefail
5
6 python3 -m pip install .
7
8 find "$SRC" -maxdepth 1 \
9 \( -name '*_seed_corpus.zip' -o -name '*.options' -o -name '*.dict' \) \
10 -exec printf '[%s] Copying: %s\n' "$(date '+%Y-%m-%d %H:%M:%S')" {} \; \
11 -exec chmod a-x {} \; \
12 -exec cp {} "$OUT" \;
13
14 # Build fuzzers in $OUT.
15 find "$SRC/jsonpickle/fuzzing" -name 'fuzz_*.py' -print0 | while IFS= read -r -d '' fuzz_harness; do
16 compile_python_fuzzer "$fuzz_harness"
17 done