mirror of
https://github.com/webmproject/libwebp.git
synced 2025-04-06 00:46:50 +02:00
oss-fuzz/build.sh: use heredoc for script creation
Rather than a quoted multi-line echo. Change-Id: Ib51fa5693f2946e2bc991dc66a6b3449e6ee61c0
This commit is contained in:
parent
50074930e3
commit
ddd6245eb7
@ -70,13 +70,15 @@ for fuzz_main_file in $FUZZ_TEST_BINARIES_OUT_PATHS; do
|
|||||||
for fuzz_entrypoint in $FUZZ_TESTS; do
|
for fuzz_entrypoint in $FUZZ_TESTS; do
|
||||||
TARGET_FUZZER="${fuzz_basename}@$fuzz_entrypoint"
|
TARGET_FUZZER="${fuzz_basename}@$fuzz_entrypoint"
|
||||||
# Write executer script
|
# Write executer script
|
||||||
echo "#!/bin/sh
|
cat << EOF > $OUT/$TARGET_FUZZER
|
||||||
|
#!/bin/sh
|
||||||
# LLVMFuzzerTestOneInput for fuzzer detection.
|
# LLVMFuzzerTestOneInput for fuzzer detection.
|
||||||
this_dir=\$(dirname \"\$0\")
|
this_dir=\$(dirname \"\$0\")
|
||||||
export TEST_DATA_DIRS=\$this_dir/corpus
|
export TEST_DATA_DIRS=\$this_dir/corpus
|
||||||
chmod +x \$this_dir/$fuzz_basename
|
chmod +x \$this_dir/$fuzz_basename
|
||||||
\$this_dir/$fuzz_basename --fuzz=$fuzz_entrypoint -- \$@
|
\$this_dir/$fuzz_basename --fuzz=$fuzz_entrypoint -- \$@
|
||||||
chmod -x \$this_dir/$fuzz_basename" > $OUT/$TARGET_FUZZER
|
chmod -x \$this_dir/$fuzz_basename
|
||||||
|
EOF
|
||||||
chmod +x $OUT/$TARGET_FUZZER
|
chmod +x $OUT/$TARGET_FUZZER
|
||||||
done
|
done
|
||||||
# Copy data.
|
# Copy data.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user