File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change 15
15
#
16
16
# ###############################################################################
17
17
18
- # build project
18
+ # install dependencies
19
19
npm ci
20
- unzip node_modules/xmltest/xmltest.zip
20
+ # no longer part of xmldom devDependencies since it can no longer be installed reliably
21
+ npm i -D @jazzer.js/core
21
22
22
- # Copy corpus out
23
- cp -rf $SRC /xmldom/xmltest $OUT /xmltest
23
+ # prepare corpus
24
+ XMLTEST_CORPUS=$OUT /xmldom/xmltest
25
+ mkdir -p $XMLTEST_CORPUS
26
+ # extract all *.xml files without a folder structure,
27
+ # renaming duplicate filenames with ~, ~1, ~2, ...
28
+ # into the target directory
29
+ unzip -Bj node_modules/xmltest/xmltest.zip ' *.xml' -d $XMLTEST_CORPUS
24
30
25
31
# build fuzzers
26
- compile_javascript_fuzzer xmldom fuzz/dom-parser.xml.target.js --sync --timeout=10 xmltest
27
- compile_javascript_fuzzer xmldom fuzz/dom-parser.html.target.js --sync --timeout=10 xmltest
32
+ compile_javascript_fuzzer xmldom fuzz/dom-parser.xml.target.js --sync --timeout=10 $XMLTEST_CORPUS
33
+ compile_javascript_fuzzer xmldom fuzz/dom-parser.html.target.js --sync --timeout=10 $XMLTEST_CORPUS
You can’t perform that action at this time.
0 commit comments