Skip to content

Commit b8e7579

Browse files
authored
Copy missing fuzzers to image (#14253)
Depends on hugovk/python-library-fuzzers#1 to avoid errors. This pull request copies the following missing fuzzers into the image: * `fuzzer-re` * `fuzzer-zipfile` * `fuzzer-tarfile` * `fuzzer-configparser` * `fuzzer-tomllib` * `fuzzer-plistlib` Need to create a mechanism that ensures this doesn't happen in the future. Also some documentation, as it's not obvious when creating a new fuzzer on the `python-library-fuzzers` repository that you'd need to update this `build.sh` file, too.
1 parent 0ce0d05 commit b8e7579

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

projects/python3-libraries/build.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,22 @@ cp $SRC/python-library-fuzzers/fuzzer-ast.dict $OUT/
9797
mkdir corp-ast/
9898
find $SRC/cpython -type f -name '*.py' -size -4097c -exec cp {} corp-ast/ \;
9999
zip -j $OUT/fuzzer-ast_seed_corpus.zip corp-ast/*
100+
101+
cp $SRC/python-library-fuzzers/fuzzer-re $OUT/
102+
cp $SRC/python-library-fuzzers/re.py $OUT/
103+
104+
cp $SRC/python-library-fuzzers/fuzzer-zipfile $OUT/
105+
cp $SRC/python-library-fuzzers/zipfile.py $OUT/
106+
107+
cp $SRC/python-library-fuzzers/fuzzer-tarfile $OUT/
108+
cp $SRC/python-library-fuzzers/tarfile.py $OUT/
109+
110+
cp $SRC/python-library-fuzzers/fuzzer-configparser $OUT/
111+
cp $SRC/python-library-fuzzers/configparser.py $OUT/
112+
113+
cp $SRC/python-library-fuzzers/fuzzer-tomllib $OUT/
114+
cp $SRC/python-library-fuzzers/tomllib.py $OUT/
115+
116+
cp $SRC/python-library-fuzzers/fuzzer-plistlib $OUT/
117+
cp $SRC/python-library-fuzzers/plist.py $OUT/
118+

projects/python3-libraries/project.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ fuzzing_engines:
1212
- honggfuzz
1313
sanitizers:
1414
- address
15-
- undefined
15+
# Temporarily disabled (see google/oss-fuzz#14253)
16+
# - undefined

0 commit comments

Comments
 (0)