From 291956b5016d274f48e089fff062078d9a76a402 Mon Sep 17 00:00:00 2001 From: Navidem Date: Thu, 9 Jun 2022 04:39:25 -0500 Subject: Set flags to use old pass manger (#7828) * Set flags to use old pass manger * nit * Add comment to Dockerfile * More informative comment * nit --- projects/alembic/Dockerfile | 3 +++ projects/bearssl/Dockerfile | 3 +++ projects/bls-signatures/Dockerfile | 3 +++ projects/boost/Dockerfile | 3 +++ projects/boringssl/Dockerfile | 5 ++++- projects/botan/Dockerfile | 3 +++ projects/c-ares/Dockerfile | 3 +++ projects/cel-cpp/Dockerfile | 3 +++ projects/cmake/Dockerfile | 3 +++ projects/cppcheck/Dockerfile | 3 +++ projects/cyclonedds/Dockerfile | 5 ++++- projects/dart/Dockerfile | 3 +++ projects/duckdb/Dockerfile | 3 +++ projects/fast-dds/Dockerfile | 3 +++ projects/firestore/Dockerfile | 3 +++ projects/flatbuffers/Dockerfile | 3 +++ projects/git/Dockerfile | 3 +++ projects/gnupg/Dockerfile | 3 +++ projects/gnutls/Dockerfile | 3 +++ projects/grpc-httpjson-transcoding/Dockerfile | 3 +++ projects/hermes/Dockerfile | 3 +++ projects/janet/Dockerfile | 3 +++ projects/json/Dockerfile | 3 +++ projects/jsoncpp/Dockerfile | 3 +++ projects/jsonnet/Dockerfile | 3 +++ projects/keystone/Dockerfile | 3 +++ projects/lame/Dockerfile | 3 +++ projects/libcoap/Dockerfile | 3 +++ projects/libecc/Dockerfile | 3 +++ projects/libheif/Dockerfile | 3 +++ projects/libressl/Dockerfile | 3 +++ projects/libsass/Dockerfile | 3 +++ projects/libspectre/Dockerfile | 3 +++ projects/libvips/Dockerfile | 3 +++ projects/muduo/Dockerfile | 3 +++ projects/nettle/Dockerfile | 3 +++ projects/nss/Dockerfile | 3 +++ projects/oatpp/Dockerfile | 3 +++ projects/openbabel/Dockerfile | 3 +++ projects/opencv/Dockerfile | 3 +++ projects/opendnp3/Dockerfile | 3 +++ projects/opensc/Dockerfile | 3 +++ projects/perfetto/Dockerfile | 3 +++ projects/piex/Dockerfile | 3 +++ projects/pistache/Dockerfile | 3 +++ projects/powerdns/Dockerfile | 3 +++ projects/proj4/Dockerfile | 3 +++ projects/qpdf/Dockerfile | 3 +++ projects/relic/Dockerfile | 3 +++ projects/simd/Dockerfile | 3 +++ projects/spdlog/Dockerfile | 3 +++ projects/spice-usbredir/Dockerfile | 3 +++ projects/tinygltf/Dockerfile | 3 +++ projects/usbguard/Dockerfile | 3 +++ projects/valijson/Dockerfile | 3 +++ projects/wabt/Dockerfile | 3 +++ projects/wolfssl/Dockerfile | 3 +++ projects/znc/Dockerfile | 3 +++ projects/zstd/Dockerfile | 3 +++ 59 files changed, 179 insertions(+), 2 deletions(-) (limited to 'projects') diff --git a/projects/alembic/Dockerfile b/projects/alembic/Dockerfile index baf498d3..a377686c 100644 --- a/projects/alembic/Dockerfile +++ b/projects/alembic/Dockerfile @@ -27,3 +27,6 @@ RUN git clone -b v2.4.2 --depth 1 https://github.com/AcademySoftwareFoundation/o COPY build.sh *.h *.cc $SRC/ WORKDIR $WORK/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/bearssl/Dockerfile b/projects/bearssl/Dockerfile index 6f14e63c..e1906200 100644 --- a/projects/bearssl/Dockerfile +++ b/projects/bearssl/Dockerfile @@ -22,3 +22,6 @@ RUN git clone --depth 1 https://github.com/guidovranken/cryptofuzz RUN git clone --depth 1 https://github.com/guidovranken/cryptofuzz-corpora RUN wget https://boostorg.jfrog.io/artifactory/main/release/1.74.0/source/boost_1_74_0.tar.bz2 COPY build.sh $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/bls-signatures/Dockerfile b/projects/bls-signatures/Dockerfile index 5faedbb9..3f67c82a 100644 --- a/projects/bls-signatures/Dockerfile +++ b/projects/bls-signatures/Dockerfile @@ -25,3 +25,6 @@ RUN wget https://boostorg.jfrog.io/artifactory/main/release/1.74.0/source/boost_ RUN wget https://gmplib.org/download/gmp/gmp-6.2.1.tar.lz RUN wget https://download.libsodium.org/libsodium/releases/libsodium-1.0.18-stable.tar.gz COPY build.sh $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/boost/Dockerfile b/projects/boost/Dockerfile index f05e6bbb..4815fcce 100644 --- a/projects/boost/Dockerfile +++ b/projects/boost/Dockerfile @@ -21,3 +21,6 @@ RUN git clone --recursive https://github.com/boostorg/boost.git WORKDIR boost # Preferably, move boost_regex_fuzzer.cc to the boost repository. COPY build.sh *.cc $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/boringssl/Dockerfile b/projects/boringssl/Dockerfile index 33cc1c2d..7f9bc5b0 100644 --- a/projects/boringssl/Dockerfile +++ b/projects/boringssl/Dockerfile @@ -23,4 +23,7 @@ RUN git clone --depth 1 https://boringssl.googlesource.com/boringssl RUN git clone --depth 1 https://github.com/google/fuzzing.git RUN git clone --depth 1 https://github.com/google/libprotobuf-mutator.git RUN (mkdir LPM && cd LPM && cmake ../libprotobuf-mutator -GNinja -DLIB_PROTO_MUTATOR_DOWNLOAD_PROTOBUF=ON -DLIB_PROTO_MUTATOR_TESTING=OFF -DCMAKE_BUILD_TYPE=Release && ninja) -COPY *.cc build.sh $SRC/ \ No newline at end of file +COPY *.cc build.sh $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/botan/Dockerfile b/projects/botan/Dockerfile index 8055967b..e485603e 100644 --- a/projects/botan/Dockerfile +++ b/projects/botan/Dockerfile @@ -20,3 +20,6 @@ RUN git clone --depth 1 https://github.com/randombit/botan.git botan RUN git clone --depth 1 https://github.com/randombit/crypto-corpus.git fuzzer_corpus WORKDIR botan COPY build.sh $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/c-ares/Dockerfile b/projects/c-ares/Dockerfile index ea155061..28927795 100644 --- a/projects/c-ares/Dockerfile +++ b/projects/c-ares/Dockerfile @@ -19,3 +19,6 @@ RUN apt-get update && apt-get install -y make autoconf automake libtool RUN git clone --depth 1 https://github.com/c-ares/c-ares.git WORKDIR c-ares COPY build.sh $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/cel-cpp/Dockerfile b/projects/cel-cpp/Dockerfile index a95e7404..48f76f90 100644 --- a/projects/cel-cpp/Dockerfile +++ b/projects/cel-cpp/Dockerfile @@ -26,3 +26,6 @@ RUN cat WORKSPACE >> $SRC/cel-cpp/WORKSPACE RUN cat .bazelrc >> $SRC/cel-cpp/.bazelrc RUN echo "4.1.0" > $SRC/cel-cpp/.bazelversion WORKDIR $SRC/cel-cpp +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/cmake/Dockerfile b/projects/cmake/Dockerfile index 2b7c2ef0..8236d193 100644 --- a/projects/cmake/Dockerfile +++ b/projects/cmake/Dockerfile @@ -21,3 +21,6 @@ RUN git clone --depth 1 https://gitlab.kitware.com/cmake/cmake CMake RUN git clone --depth 1 https://github.com/strongcourage/fuzzing-corpus WORKDIR CMake COPY build.sh $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/cppcheck/Dockerfile b/projects/cppcheck/Dockerfile index 5bec9288..e36f0737 100644 --- a/projects/cppcheck/Dockerfile +++ b/projects/cppcheck/Dockerfile @@ -21,3 +21,6 @@ RUN git clone https://github.com/danmar/cppcheck.git WORKDIR cppcheck COPY build.sh $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/cyclonedds/Dockerfile b/projects/cyclonedds/Dockerfile index 74b503cf..cba1376d 100644 --- a/projects/cyclonedds/Dockerfile +++ b/projects/cyclonedds/Dockerfile @@ -27,4 +27,7 @@ RUN apt-get update && apt install -y \ RUN git clone --depth 1 https://github.com/eclipse-cyclonedds/cyclonedds COPY build.sh $SRC -WORKDIR $SRC/cyclonedds \ No newline at end of file +WORKDIR $SRC/cyclonedds +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/dart/Dockerfile b/projects/dart/Dockerfile index d60afcba..f30eaa9c 100644 --- a/projects/dart/Dockerfile +++ b/projects/dart/Dockerfile @@ -23,3 +23,6 @@ RUN mkdir dart-sdk && cd dart-sdk && fetch dart COPY build.sh $SRC COPY patch.diff $SRC WORKDIR $SRC/dart-sdk/sdk +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/duckdb/Dockerfile b/projects/duckdb/Dockerfile index 4b35176c..ddba6201 100644 --- a/projects/duckdb/Dockerfile +++ b/projects/duckdb/Dockerfile @@ -18,3 +18,6 @@ FROM gcr.io/oss-fuzz-base/base-builder RUN git clone --depth=1 https://github.com/duckdb/duckdb duckdb WORKDIR duckdb COPY build.sh $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/fast-dds/Dockerfile b/projects/fast-dds/Dockerfile index 414d421d..338642f5 100644 --- a/projects/fast-dds/Dockerfile +++ b/projects/fast-dds/Dockerfile @@ -23,3 +23,6 @@ RUN git clone --depth 1 https://github.com/eProsima/foonathan_memory_vendor.git RUN git clone --depth 1 https://github.com/eProsima/Fast-DDS.git COPY build.sh $SRC WORKDIR $SRC/Fast-DDS +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/firestore/Dockerfile b/projects/firestore/Dockerfile index bb024aa4..017c8762 100644 --- a/projects/firestore/Dockerfile +++ b/projects/firestore/Dockerfile @@ -18,3 +18,6 @@ FROM gcr.io/oss-fuzz-base/base-builder RUN apt-get update && apt-get install -y make autoconf automake libtool wget golang python python-protobuf python-six RUN git clone --depth 1 https://github.com/firebase/firebase-ios-sdk.git COPY build.sh $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/flatbuffers/Dockerfile b/projects/flatbuffers/Dockerfile index 83caf67c..8d150a3a 100644 --- a/projects/flatbuffers/Dockerfile +++ b/projects/flatbuffers/Dockerfile @@ -20,3 +20,6 @@ RUN git clone https://github.com/google/flatbuffers WORKDIR $SRC/ COPY build.sh $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/git/Dockerfile b/projects/git/Dockerfile index eb487434..d512ba4e 100644 --- a/projects/git/Dockerfile +++ b/projects/git/Dockerfile @@ -26,3 +26,6 @@ RUN git clone https://github.com/git/git git WORKDIR git RUN git checkout origin/next COPY build.sh $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/gnupg/Dockerfile b/projects/gnupg/Dockerfile index a3fea919..c0c89404 100644 --- a/projects/gnupg/Dockerfile +++ b/projects/gnupg/Dockerfile @@ -35,3 +35,6 @@ WORKDIR gnupg COPY fuzzgnupg.diff $SRC/fuzz.diff COPY fuzz_* $SRC/ COPY build.sh $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/gnutls/Dockerfile b/projects/gnutls/Dockerfile index cafa0a31..249a5287 100644 --- a/projects/gnutls/Dockerfile +++ b/projects/gnutls/Dockerfile @@ -47,3 +47,6 @@ RUN git clone --depth=1 --recursive https://gitlab.com/gnutls/gnutls.git WORKDIR gnutls COPY build.sh $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/grpc-httpjson-transcoding/Dockerfile b/projects/grpc-httpjson-transcoding/Dockerfile index 1746a42a..fecfd2f9 100644 --- a/projects/grpc-httpjson-transcoding/Dockerfile +++ b/projects/grpc-httpjson-transcoding/Dockerfile @@ -21,3 +21,6 @@ RUN apt-get update && apt-get install python -y RUN git clone https://github.com/grpc-ecosystem/grpc-httpjson-transcoding.git WORKDIR $SRC/grpc-httpjson-transcoding/ COPY build.sh $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/hermes/Dockerfile b/projects/hermes/Dockerfile index 70f4293f..fc1c029b 100644 --- a/projects/hermes/Dockerfile +++ b/projects/hermes/Dockerfile @@ -29,3 +29,6 @@ RUN wget https://github.com/unicode-org/icu/archive/refs/tags/cldr/2021-08-25.ta RUN git clone https://github.com/facebook/hermes.git WORKDIR $SRC COPY build.sh $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/janet/Dockerfile b/projects/janet/Dockerfile index 0a24e47e..b4705705 100755 --- a/projects/janet/Dockerfile +++ b/projects/janet/Dockerfile @@ -20,3 +20,6 @@ RUN git clone https://github.com/janet-lang/janet WORKDIR $SRC COPY build.sh $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/json/Dockerfile b/projects/json/Dockerfile index 6bf74eda..63ac8138 100644 --- a/projects/json/Dockerfile +++ b/projects/json/Dockerfile @@ -20,3 +20,6 @@ RUN apt-get update && apt-get install -y binutils make RUN git clone --depth 1 -b develop https://github.com/nlohmann/json.git WORKDIR json/ COPY build.sh *.options parse_afl_fuzzer.dict $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/jsoncpp/Dockerfile b/projects/jsoncpp/Dockerfile index eefbce9a..ca81a501 100644 --- a/projects/jsoncpp/Dockerfile +++ b/projects/jsoncpp/Dockerfile @@ -22,3 +22,6 @@ WORKDIR jsoncpp RUN git clone --depth 1 https://github.com/google/libprotobuf-mutator.git RUN (mkdir LPM && cd LPM && cmake ../libprotobuf-mutator -GNinja -DLIB_PROTO_MUTATOR_DOWNLOAD_PROTOBUF=ON -DLIB_PROTO_MUTATOR_TESTING=OFF -DCMAKE_BUILD_TYPE=Release && ninja) COPY build.sh *.proto *.h *.cc $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/jsonnet/Dockerfile b/projects/jsonnet/Dockerfile index e3d65211..bed8ef98 100644 --- a/projects/jsonnet/Dockerfile +++ b/projects/jsonnet/Dockerfile @@ -21,3 +21,6 @@ WORKDIR $SRC/ COPY build.sh $SRC/ COPY *.cc $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/keystone/Dockerfile b/projects/keystone/Dockerfile index 29bcdfd1..e9c16c43 100644 --- a/projects/keystone/Dockerfile +++ b/projects/keystone/Dockerfile @@ -19,3 +19,6 @@ RUN apt-get update && apt-get install -y make cmake RUN git clone --depth 1 https://github.com/keystone-engine/keystone.git WORKDIR $SRC COPY build.sh $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/lame/Dockerfile b/projects/lame/Dockerfile index d6d6b6d5..4e8cb4da 100644 --- a/projects/lame/Dockerfile +++ b/projects/lame/Dockerfile @@ -25,3 +25,6 @@ RUN mv mpg123* mpg123 RUN git clone --depth 1 https://github.com/guidovranken/LAME-fuzzers RUN svn checkout https://svn.code.sf.net/p/lame/svn/trunk/lame $SRC/lame COPY build.sh $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/libcoap/Dockerfile b/projects/libcoap/Dockerfile index 483ce973..3e4afc3d 100644 --- a/projects/libcoap/Dockerfile +++ b/projects/libcoap/Dockerfile @@ -20,3 +20,6 @@ RUN apt-get update && apt-get install -y make autoconf automake libtool \ RUN git clone --depth 1 https://github.com/obgm/libcoap.git libcoap WORKDIR libcoap COPY build.sh $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/libecc/Dockerfile b/projects/libecc/Dockerfile index 207099f9..d417ee59 100644 --- a/projects/libecc/Dockerfile +++ b/projects/libecc/Dockerfile @@ -23,3 +23,6 @@ RUN git clone --depth 1 https://github.com/guidovranken/cryptofuzz RUN wget https://gmplib.org/download/gmp/gmp-6.2.1.tar.lz RUN wget https://boostorg.jfrog.io/artifactory/main/release/1.74.0/source/boost_1_74_0.tar.bz2 COPY build.sh $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/libheif/Dockerfile b/projects/libheif/Dockerfile index 3c1a0d0e..4d10a262 100644 --- a/projects/libheif/Dockerfile +++ b/projects/libheif/Dockerfile @@ -54,3 +54,6 @@ RUN git clone \ WORKDIR libheif COPY build.sh $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/libressl/Dockerfile b/projects/libressl/Dockerfile index 3861c854..73d483fe 100644 --- a/projects/libressl/Dockerfile +++ b/projects/libressl/Dockerfile @@ -24,3 +24,6 @@ RUN wget https://boostorg.jfrog.io/artifactory/main/release/1.74.0/source/boost_ WORKDIR libressl RUN ./update.sh COPY build.sh *.options $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/libsass/Dockerfile b/projects/libsass/Dockerfile index 93ad9874..5e275fbb 100644 --- a/projects/libsass/Dockerfile +++ b/projects/libsass/Dockerfile @@ -20,3 +20,6 @@ RUN git clone --depth 1 https://github.com/sass/libsass.git libsass WORKDIR $SRC COPY build.sh $SRC/ COPY data_context_fuzzer.cc $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/libspectre/Dockerfile b/projects/libspectre/Dockerfile index da1339dd..87b8999d 100755 --- a/projects/libspectre/Dockerfile +++ b/projects/libspectre/Dockerfile @@ -28,3 +28,6 @@ RUN mv $SRC/libspectre/ghostscript-9.53.3 $SRC/libspectre/ghostscript WORKDIR $SRC/libspectre/ COPY build.sh $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/libvips/Dockerfile b/projects/libvips/Dockerfile index f10ba446..173e0fad 100644 --- a/projects/libvips/Dockerfile +++ b/projects/libvips/Dockerfile @@ -53,3 +53,6 @@ RUN git clone --depth 1 https://github.com/dloebl/cgif.git WORKDIR libvips COPY build.sh $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/muduo/Dockerfile b/projects/muduo/Dockerfile index d8ba2234..dca00b59 100644 --- a/projects/muduo/Dockerfile +++ b/projects/muduo/Dockerfile @@ -19,3 +19,6 @@ RUN apt-get update && apt-get install -y make libboost-dev RUN git clone --depth 1 https://github.com/chenshuo/muduo WORKDIR muduo COPY build.sh muduo_http_fuzzer.cpp $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/nettle/Dockerfile b/projects/nettle/Dockerfile index b7b987cb..b5d2735d 100644 --- a/projects/nettle/Dockerfile +++ b/projects/nettle/Dockerfile @@ -23,3 +23,6 @@ RUN git clone --depth 1 https://github.com/guidovranken/cryptofuzz-corpora RUN wget https://boostorg.jfrog.io/artifactory/main/release/1.74.0/source/boost_1_74_0.tar.bz2 RUN wget https://gmplib.org/download/gmp/gmp-6.2.0.tar.lz COPY build.sh $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/nss/Dockerfile b/projects/nss/Dockerfile index 1bc729b2..4b657e5a 100644 --- a/projects/nss/Dockerfile +++ b/projects/nss/Dockerfile @@ -23,3 +23,6 @@ RUN git clone --depth 1 https://github.com/mozilla/nss-fuzzing-corpus.git nss-co WORKDIR nss COPY build.sh $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/oatpp/Dockerfile b/projects/oatpp/Dockerfile index 43ef579c..4b35f3a7 100644 --- a/projects/oatpp/Dockerfile +++ b/projects/oatpp/Dockerfile @@ -19,3 +19,6 @@ RUN apt-get update && apt-get install -y make autoconf automake libtool RUN git clone --depth 1 https://github.com/oatpp/oatpp.git oatpp WORKDIR oatpp COPY build.sh $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/openbabel/Dockerfile b/projects/openbabel/Dockerfile index 766293ae..1ab784d4 100644 --- a/projects/openbabel/Dockerfile +++ b/projects/openbabel/Dockerfile @@ -19,3 +19,6 @@ RUN apt-get update && apt install -y cmake RUN git clone --depth 1 https://github.com/openbabel/openbabel.git COPY build.sh $SRC WORKDIR $SRC/openbabel +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/opencv/Dockerfile b/projects/opencv/Dockerfile index 0d588f98..707abb38 100644 --- a/projects/opencv/Dockerfile +++ b/projects/opencv/Dockerfile @@ -21,3 +21,6 @@ WORKDIR opencv/ COPY build.sh $SRC/ COPY *.cc *.h $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/opendnp3/Dockerfile b/projects/opendnp3/Dockerfile index 2152ff06..aea64170 100644 --- a/projects/opendnp3/Dockerfile +++ b/projects/opendnp3/Dockerfile @@ -20,3 +20,6 @@ RUN apt-get update && apt-get install -y make wget tshark RUN git clone --recursive -b release --depth 1 https://github.com/dnp3/opendnp3.git opendnp3 WORKDIR opendnp3 COPY build.sh $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/opensc/Dockerfile b/projects/opensc/Dockerfile index 4393c710..52225dd5 100644 --- a/projects/opensc/Dockerfile +++ b/projects/opensc/Dockerfile @@ -19,3 +19,6 @@ RUN apt-get update && apt-get install -y pcscd libccid libpcsclite-dev libssl-de RUN git clone --depth 1 --single-branch --branch master https://github.com/OpenSC/OpenSC opensc WORKDIR opensc COPY build.sh $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/perfetto/Dockerfile b/projects/perfetto/Dockerfile index 1ab2c35d..d864e7ff 100644 --- a/projects/perfetto/Dockerfile +++ b/projects/perfetto/Dockerfile @@ -25,3 +25,6 @@ RUN $SRC/perfetto/infra/oss-fuzz/init_container WORKDIR $SRC/perfetto COPY build.sh $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/piex/Dockerfile b/projects/piex/Dockerfile index 13824b12..f1688d7e 100644 --- a/projects/piex/Dockerfile +++ b/projects/piex/Dockerfile @@ -19,3 +19,6 @@ RUN apt-get update && apt-get install -y make autoconf automake libtool RUN git clone https://github.com/guidovranken/piex.git piex WORKDIR piex COPY build.sh $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/pistache/Dockerfile b/projects/pistache/Dockerfile index 7071af9a..e5c142e0 100644 --- a/projects/pistache/Dockerfile +++ b/projects/pistache/Dockerfile @@ -20,3 +20,6 @@ RUN pip3 install meson==0.53.0 ninja RUN git clone --depth 1 https://github.com/pistacheio/pistache pistache WORKDIR pistache COPY build.sh $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/powerdns/Dockerfile b/projects/powerdns/Dockerfile index 6d02406e..236294c0 100644 --- a/projects/powerdns/Dockerfile +++ b/projects/powerdns/Dockerfile @@ -30,3 +30,6 @@ WORKDIR pdns # copy build script and other fuzzer files in src dir COPY build.sh $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/proj4/Dockerfile b/projects/proj4/Dockerfile index da7263a0..32fab78d 100644 --- a/projects/proj4/Dockerfile +++ b/projects/proj4/Dockerfile @@ -27,3 +27,6 @@ RUN git clone --depth 1 https://gitlab.com/libtiff/libtiff.git proj/libtiff WORKDIR proj RUN cp test/fuzzers/build.sh $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/qpdf/Dockerfile b/projects/qpdf/Dockerfile index 2c48bc5c..ef927941 100644 --- a/projects/qpdf/Dockerfile +++ b/projects/qpdf/Dockerfile @@ -21,3 +21,6 @@ RUN git clone --depth 1 https://github.com/madler/zlib.git zlib RUN git clone --depth 1 https://github.com/libjpeg-turbo/libjpeg-turbo libjpeg-turbo WORKDIR qpdf COPY build.sh $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/relic/Dockerfile b/projects/relic/Dockerfile index 20213173..9bd88059 100644 --- a/projects/relic/Dockerfile +++ b/projects/relic/Dockerfile @@ -21,3 +21,6 @@ RUN git clone --depth 1 https://github.com/randombit/botan.git RUN git clone --depth 1 https://github.com/guidovranken/cryptofuzz RUN wget https://boostorg.jfrog.io/artifactory/main/release/1.74.0/source/boost_1_74_0.tar.bz2 COPY build.sh $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/simd/Dockerfile b/projects/simd/Dockerfile index 5c030e0d..5b6f662a 100644 --- a/projects/simd/Dockerfile +++ b/projects/simd/Dockerfile @@ -19,3 +19,6 @@ RUN apt-get update && apt-get install -y make RUN git clone --depth 1 https://github.com/ermig1979/Simd WORKDIR Simd COPY build.sh simd_load_fuzzer.cpp $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/spdlog/Dockerfile b/projects/spdlog/Dockerfile index 9adf61fd..82487bf0 100644 --- a/projects/spdlog/Dockerfile +++ b/projects/spdlog/Dockerfile @@ -22,3 +22,6 @@ RUN zip spdlog_fuzzer_seed_corpus.zip spdlog/example/* WORKDIR spdlog COPY build.sh spdlog_fuzzer.dict $SRC/ COPY fuzz/* $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/spice-usbredir/Dockerfile b/projects/spice-usbredir/Dockerfile index 6a1059f8..0e2d52d0 100644 --- a/projects/spice-usbredir/Dockerfile +++ b/projects/spice-usbredir/Dockerfile @@ -29,3 +29,6 @@ RUN git clone --depth 1 https://gitlab.freedesktop.org/spice/usbredir.git $SRC/s WORKDIR $SRC/spice-usbredir COPY build.sh $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/tinygltf/Dockerfile b/projects/tinygltf/Dockerfile index 218baeb0..aaec1b3a 100644 --- a/projects/tinygltf/Dockerfile +++ b/projects/tinygltf/Dockerfile @@ -19,3 +19,6 @@ RUN pip3 install meson ninja RUN git clone --depth 1 https://github.com/syoyo/tinygltf.git WORKDIR $SRC/tinygltf COPY build.sh $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/usbguard/Dockerfile b/projects/usbguard/Dockerfile index 98a042a1..0bfc080a 100644 --- a/projects/usbguard/Dockerfile +++ b/projects/usbguard/Dockerfile @@ -42,3 +42,6 @@ RUN git clone --recurse-submodules --depth 1 \ https://github.com/USBGuard/usbguard usbguard WORKDIR usbguard COPY build.sh $SRC +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/valijson/Dockerfile b/projects/valijson/Dockerfile index 2f17c039..e946b479 100644 --- a/projects/valijson/Dockerfile +++ b/projects/valijson/Dockerfile @@ -21,3 +21,6 @@ RUN apt-get update && apt-get install -y make autoconf automake libtool \ RUN git clone --depth 1 https://github.com/tristanpenman/valijson WORKDIR valijson RUN cp $SRC/valijson/tests/fuzzing/oss-fuzz-build.sh $SRC/build.sh +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/wabt/Dockerfile b/projects/wabt/Dockerfile index ac7efab8..c05b34c5 100644 --- a/projects/wabt/Dockerfile +++ b/projects/wabt/Dockerfile @@ -21,3 +21,6 @@ WORKDIR wabt RUN git submodule init RUN git submodule update COPY build.sh wasm2wat_fuzzer.cc $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/wolfssl/Dockerfile b/projects/wolfssl/Dockerfile index 10e040a3..e8fed2ee 100644 --- a/projects/wolfssl/Dockerfile +++ b/projects/wolfssl/Dockerfile @@ -60,3 +60,6 @@ RUN gsutil cp gs://libressl-backup.clusterfuzz-external.appspot.com/corpus/libFu WORKDIR wolfssl COPY build.sh $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/znc/Dockerfile b/projects/znc/Dockerfile index 923e0155..c8b64ecf 100644 --- a/projects/znc/Dockerfile +++ b/projects/znc/Dockerfile @@ -19,3 +19,6 @@ RUN apt-get update && apt-get install -y make RUN git clone --depth 1 https://github.com/znc/znc WORKDIR $SRC/znc COPY build.sh msg_parse_fuzzer.cpp $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 diff --git a/projects/zstd/Dockerfile b/projects/zstd/Dockerfile index d8b8c5e1..5eeb4df4 100644 --- a/projects/zstd/Dockerfile +++ b/projects/zstd/Dockerfile @@ -20,3 +20,6 @@ RUN apt-get update && apt-get install -y make python wget RUN git clone --depth 1 https://github.com/facebook/zstd WORKDIR zstd COPY build.sh $SRC/ +# This is to fix Fuzz Introspector build by using LLVM old pass manager +# re https://github.com/ossf/fuzz-introspector/issues/305 +ENV OLD_LLVMPASS 1 -- cgit v1.2.3