summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRandy <randy408@protonmail.com>2020-02-19 14:33:03 +0100
committerRandy <randy408@protonmail.com>2020-02-19 14:33:03 +0100
commitca205d084434915127e64a9d54eafd05cdee872b (patch)
treeae838f36e5e0000bd500e683bb1fdf3fca5d4d55
parent7ae80bff9ee04793a1c0d59e538da7802f81a43d (diff)
ossfuzz: fix coverage build
-rwxr-xr-xtest/ossfuzz.sh39
1 files changed, 39 insertions, 0 deletions
diff --git a/test/ossfuzz.sh b/test/ossfuzz.sh
index 0ac9436..4ff5858 100755
--- a/test/ossfuzz.sh
+++ b/test/ossfuzz.sh
@@ -21,3 +21,42 @@ find $SRC/libspectre/ghostscript-9.50 -name "*.ps" | \
xargs zip $OUT/spectre_read_fuzzer_seed_corpus.zip
cp $SRC/libspectre/test/postscript.dict $OUT/spectre_read_fuzzer.dict
+
+# Needed for coverage builds
+cd ghostscript-9.50/obj
+
+ln -s ../jpeg/jdapistd.c jdapistd.c
+ln -s ../jpeg/jdarith.c jdarith.c
+ln -s ../jpeg/jdcoefct.c jdcoefct.c
+ln -s ../jpeg/jdcolor.c jdcolor.c
+ln -s ../jpeg/jddctmgr.c jddctmgr.c
+ln -s ../jpeg/jdhuff.c jdhuff.c
+ln -s ../jpeg/jdinput.c jdinput.c
+ln -s ../jpeg/jdmainct.c jdmainct.c
+ln -s ../jpeg/jdmarker.c jdmarker.c
+ln -s ../jpeg/jdmaster.c jdmaster.c
+ln -s ../jpeg/jdpostct.c jdpostct.c
+ln -s ../jpeg/jdsample.c jdsample.c
+ln -s ../jpeg/jerror.c jerror.c
+ln -s ../jpeg/jcsample.c jcsample.c
+ln -s ../jpeg/jidctint.c jidctint.c
+ln -s ../jpeg/jcarith.c jcarith.c
+ln -s ../jpeg/jmemmgr.c jmemmgr.c
+ln -s ../jpeg/jcdctmgr.c jcdctmgr.c
+ln -s ../jpeg/jcinit.c jcinit.c
+ln -s ../jpeg/jutils.c jutils.c
+ln -s ../jpeg/jcmaster.c jcmaster.c
+ln -s ../jpeg/jcparam.c jcparam.c
+ln -s ../jpeg/jfdctint.c jfdctint.c
+ln -s ../jpeg/jcapistd.c jcapistd.c
+ln -s ../jpeg/jccoefct.c jccoefct.c
+ln -s ../jpeg/jchuff.c jchuff.c
+ln -s ../jpeg/jcmarker.c jcmarker.c
+ln -s ../jpeg/jcomapi.c jcomapi.c
+ln -s ../jpeg/jdapimin.c jdapimin.c
+ln -s ../jpeg/jcapimin.c jcapimin.c
+ln -s ../jpeg/jccolor.c jccolor.c
+ln -s ../jpeg/jcprepct.c jcprepct.c
+ln -s ../jpeg/jcmainct.c jcmainct.c
+
+cd ../.. \ No newline at end of file