mirror of https://github.com/google/oss-fuzz.git
[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:
parent
e939fe3ced
commit
61b6f42c72
|
@ -16,7 +16,10 @@
|
||||||
|
|
||||||
FROM gcr.io/oss-fuzz-base/base-builder
|
FROM gcr.io/oss-fuzz-base/base-builder
|
||||||
MAINTAINER elver@google.com
|
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
|
RUN git clone --depth 1 git://w1.fi/srv/git/hostap.git hostap
|
||||||
WORKDIR hostap
|
WORKDIR hostap
|
||||||
COPY build.sh $SRC/
|
COPY build.sh $SRC/
|
||||||
|
|
|
@ -21,12 +21,24 @@ export LDO=$CXX
|
||||||
export LDFLAGS="$CXXFLAGS $LIB_FUZZING_ENGINE"
|
export LDFLAGS="$CXXFLAGS $LIB_FUZZING_ENGINE"
|
||||||
export CFLAGS="$CFLAGS -MMD"
|
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
|
# Specific to hostap's rules.include: set empty, as we directly set required
|
||||||
# sanitizer flags in CFLAGS and LDFLAGS (above).
|
# sanitizer flags in CFLAGS and LDFLAGS (above).
|
||||||
export FUZZ_FLAGS=
|
export FUZZ_FLAGS=
|
||||||
|
|
||||||
for target in fuzzing/*; do
|
for target in fuzzing/*; do
|
||||||
[[ -d "$target" ]] || continue
|
[[ -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"
|
cd "$target"
|
||||||
make clean
|
make clean
|
||||||
|
|
Loading…
Reference in New Issue