@@ -3,7 +3,7 @@ ARG SSLLIB=QuicTLS
33
44# combined list of dependencies for QuicTLS, AWS-LC
55ENV DEBIAN_FRONTEND noninteractive
6- RUN apt-get -y update && apt-get -y install git g++ make gcc wget autoconf libtool cmake curl
6+ RUN apt-get -y update && apt-get -y install git g++ make gcc wget autoconf libtool cmake curl libasan5
77
88# AWS-LC requirement
99COPY --from=golang:latest /usr/local/go/ /usr/local/go/
@@ -42,10 +42,10 @@ RUN apt-get -y update && apt-get -y install git make gcc liblua5.3-0 liblua5.3-d
4242 SSL_LIB=/usr/local/lib/ \
4343 SMALL_OPTS="" \
4444 CPU_CFLAGS.generic="-O0" \
45- ARCH_FLAGS="-g -Wno-deprecated-declarations" \
45+ ARCH_FLAGS="-g -Wno-deprecated-declarations -fsanitize=address " \
4646 ERR=1 \
4747 DEBUG="-DDEBUG_DONT_SHARE_POOLS -DDEBUG_MEMORY_POOLS -DDEBUG_STRICT=2 -DDEBUG_TASK -DDEBUG_FAIL_ALLOC" \
48- LDFLAGS="-fuse-ld=gold" \
48+ LDFLAGS="-fuse-ld=gold -fsanitize=address " \
4949 ARCH_FLAGS="-pg" \
5050 USE_LUA=1 LUA_LIB_NAME=lua5.3 \
5151 IGNOREGIT=1 VERSION=$(git log -1 --pretty=format:%H) \
@@ -57,7 +57,7 @@ ARG SSLLIB=QuicTLS
5757# Required for lighttpd
5858ENV TZ=Europe/Paris
5959RUN echo $TZ > /etc/timezone && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime
60- RUN apt-get -y update && apt-get -y install lighttpd liblua5.3-0 && rm -rf /var/lib/apt/lists/*
60+ RUN apt-get -y update && apt-get -y install lighttpd liblua5.3-0 libasan5 && rm -rf /var/lib/apt/lists/*
6161
6262COPY --from=builder-ssl \
6363 /usr/local/lib/libssl.so* /usr/local/lib/libcrypto.so* /usr/local/lib/
0 commit comments