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