[libressl] Fix Cryptofuzz build (#4691)

This commit is contained in:
Guido Vranken 2020-11-23 15:26:15 +01:00 committed by GitHub
parent 91a6a12dbe
commit 392e5f8557
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View File

@ -15,11 +15,12 @@
################################################################################
FROM gcr.io/oss-fuzz-base/base-builder
RUN apt-get update && apt-get install -y make cmake libboost-all-dev
RUN apt-get update && apt-get install -y make cmake wget
RUN git clone --depth 1 https://github.com/libressl-portable/portable.git libressl
RUN git clone --depth 1 https://github.com/libressl-portable/fuzz.git libressl.fuzzers
RUN git clone --depth 1 https://github.com/guidovranken/cryptofuzz
RUN git clone --depth 1 https://github.com/guidovranken/cryptofuzz-corpora
RUN wget https://dl.bintray.com/boostorg/release/1.74.0/source/boost_1_74_0.tar.bz2
WORKDIR libressl
RUN ./update.sh
COPY build.sh *.options $SRC/

View File

@ -16,6 +16,14 @@
#
################################################################################
# Install Boost headers
cd $SRC/
tar jxf boost_1_74_0.tar.bz2
cd boost_1_74_0/
CFLAGS="" CXXFLAGS="" ./bootstrap.sh
CFLAGS="" CXXFLAGS="" ./b2 headers
cp -R boost/ /usr/include/
# Prevent Boost compilation error with -std=c++17
export CXXFLAGS="$CXXFLAGS -D_LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR"