[hostap] Add missing libssl-dev dependency (#3673)

Recent builds have started failing due to libssl-dev missing --
presumably the base image no longer includes this. Fix this by
installing libssl-dev.
This commit is contained in:
Marco Elver 2020-04-24 16:25:57 +02:00 committed by GitHub
parent e939fe3ced
commit 61b6f42c72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 1 deletions

View File

@ -16,7 +16,10 @@
FROM gcr.io/oss-fuzz-base/base-builder
MAINTAINER elver@google.com
RUN apt-get update && apt-get install -y make autoconf automake libtool g++
RUN dpkg --add-architecture i386 && \
apt-get update && \
apt-get install -y make autoconf automake libtool g++ libssl-dev \
libssl-dev:i386
RUN git clone --depth 1 git://w1.fi/srv/git/hostap.git hostap
WORKDIR hostap
COPY build.sh $SRC/

View File

@ -21,12 +21,24 @@ export LDO=$CXX
export LDFLAGS="$CXXFLAGS $LIB_FUZZING_ENGINE"
export CFLAGS="$CFLAGS -MMD"
if [[ "$ARCHITECTURE" == "i386" ]]; then
# Force static link
rm -v /lib/i386-linux-gnu/libcrypto.so* || :
fi
# Specific to hostap's rules.include: set empty, as we directly set required
# sanitizer flags in CFLAGS and LDFLAGS (above).
export FUZZ_FLAGS=
for target in fuzzing/*; do
[[ -d "$target" ]] || continue
if [[ "$SANITIZER" == "dataflow" ]]; then
# libcrypto seems to cause problems with 'dataflow' sanitizer.
[[ "$target" == "fuzzing/dpp-uri" ]] && continue || :
[[ "$target" == "fuzzing/sae" ]] && continue || :
fi
(
cd "$target"
make clean