From cb4b240af7947d5687bcff3c795d229701e62fe6 Mon Sep 17 00:00:00 2001 From: DavidKorczynski Date: Thu, 12 Oct 2023 12:53:47 +0100 Subject: [PATCH] xmldom: fix build by copying corpus to OUT (#11108) Fixes: https://github.com/google/oss-fuzz/pull/11036#issuecomment-1759249910 CC @karfau To test this from outside the containers: ``` python3 infra/helper.py build_fuzzers xmldom python3 infra/helper.py run_fuzzer xmldom dom-parser.xml.target python3 infra/helper.py run_fuzzer xmldom dom-parser.html.target ``` Signed-off-by: David Korczynski --- projects/xmldom/build.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/projects/xmldom/build.sh b/projects/xmldom/build.sh index 15294ef9d..609c8a431 100755 --- a/projects/xmldom/build.sh +++ b/projects/xmldom/build.sh @@ -19,6 +19,9 @@ npm ci unzip node_modules/xmltest/xmltest.zip +# Copy corpus out +cp -rf $SRC/xmldom/xmltest $OUT/xmltest + # build fuzzers compile_javascript_fuzzer xmldom fuzz/dom-parser.xml.target.js --sync --timeout=10 xmltest compile_javascript_fuzzer xmldom fuzz/dom-parser.html.target.js --sync --timeout=10 xmltest