File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ set -euo pipefail
4
4
5
5
python3 -m pip install .
6
6
7
- # Directory to look in for dictionaries, options files, and seed corpa :
7
+ # Directory to look in for dictionaries, options files, and seed corpora :
8
8
SEED_DATA_DIR=" $SRC /seed_data"
9
9
10
10
find " $SEED_DATA_DIR " \( -name ' *_seed_corpus.zip' -o -name ' *.options' -o -name ' *.dict' \) \
@@ -27,7 +27,7 @@ find "$SRC/gitpython/fuzzing" -name 'fuzz_*.py' -print0 | while IFS= read -r -d
27
27
# If a dictionary file for this fuzzer already exists and is not empty,
28
28
# we append a new line to the end of it before appending any new entries.
29
29
#
30
- # libfuzzer will happily ignore multiple empty lines in a dictionary but crash
30
+ # LibFuzzer will happily ignore multiple empty lines in a dictionary but fail with an error
31
31
# if any single line has incorrect syntax (e.g., if we accidentally add two entries to the same line.)
32
32
# See docs for valid syntax: https://llvm.org/docs/LibFuzzer.html#id32
33
33
echo >> " $output_file "
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ download_and_concatenate_common_dictionaries() {
34
34
done
35
35
}
36
36
37
- fetch_seed_corpra () {
37
+ fetch_seed_corpora () {
38
38
# Seed corpus zip files are hosted in a separate repository to avoid additional bloat in this repo.
39
39
git clone --depth 1 https://github.com/gitpython-developers/qa-assets.git qa-assets &&
40
40
rsync -avc qa-assets/gitpython/corpra/ " $SEED_DATA_DIR /" &&
@@ -45,12 +45,13 @@ fetch_seed_corpra() {
45
45
# Main execution logic #
46
46
# #######################
47
47
48
- fetch_seed_corpra
48
+ fetch_seed_corpora
49
49
50
50
download_and_concatenate_common_dictionaries " $SEED_DATA_DIR /__base.dict" \
51
51
" https://raw.githubusercontent.com/google/fuzzing/master/dictionaries/utf8.dict" \
52
52
" https://raw.githubusercontent.com/google/fuzzing/master/dictionaries/url.dict"
53
53
54
54
# The OSS-Fuzz base image has outdated dependencies by default so we upgrade them below.
55
55
python3 -m pip install --upgrade pip
56
- python3 -m pip install ' setuptools~=69.0' ' pyinstaller~=6.0' # Uses the latest versions know to work at the time of this commit.
56
+ # Upgrade to the latest versions known to work at the time the below changes were introduced:
57
+ python3 -m pip install ' setuptools~=69.0' ' pyinstaller~=6.0'
You can’t perform that action at this time.
0 commit comments