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 1515#
1616# ###############################################################################
1717
18- # build project
18+ # install dependencies
1919npm 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
2122
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
2430
2531# 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