2019-06-13 13:28:38 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
export WORK=$PWD/work
|
|
|
|
export OUT=$PWD/out
|
|
|
|
mkdir -p $WORK $OUT
|
|
|
|
sudo apt-get update
|
2022-03-12 15:05:36 +00:00
|
|
|
sudo apt-get -y install build-essential cmake zlib1g-dev libjpeg-dev
|
2019-06-13 13:28:38 +00:00
|
|
|
./fuzz/oss-fuzz-build
|
2022-03-12 15:05:36 +00:00
|
|
|
ls -l out/qpdf_fuzzer
|
2019-06-13 13:28:38 +00:00
|
|
|
ls -l out/
|
2024-06-18 15:00:44 +00:00
|
|
|
for fuzzer in qpdf_fuzzer future_qpdf_fuzzer; do
|
|
|
|
if ldd out/$fuzzer | grep -E 'libjpeg|libz|libqpdf'; then
|
|
|
|
echo 1>&2 "*** Fuzzers linked dynamically with some dependent libraries."
|
|
|
|
ldd out/$fuzzer
|
|
|
|
exit 2
|
|
|
|
fi
|
|
|
|
done
|