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 <david@adalogics.com>
This commit is contained in:
DavidKorczynski 2023-10-12 12:53:47 +01:00 committed by GitHub
parent f27007487c
commit cb4b240af7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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