mirror of https://github.com/google/oss-fuzz.git
bind9: Add libcap-dev as it is mandatory on Linux now (#8949)
Signed-off-by: Ondřej Surý <ondrej@sury.org>
This commit is contained in:
parent
296a0fc7b6
commit
6e9d0defcf
|
@ -23,6 +23,7 @@ RUN apt-get -y install \
|
|||
autotools-dev \
|
||||
bison \
|
||||
build-essential \
|
||||
libcap-dev \
|
||||
libnghttp2-dev \
|
||||
libssl-dev \
|
||||
libtool \
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
# build the project
|
||||
autoreconf -fi
|
||||
./configure --disable-shared --enable-static --enable-developer --without-cmocka --without-zlib --disable-linux-caps --prefix="$WORK" --enable-fuzzing=ossfuzz
|
||||
./configure --disable-shared --enable-static --enable-developer --without-cmocka --without-zlib --prefix="$WORK" --enable-fuzzing=ossfuzz
|
||||
(cd lib/isc && make -j"$(nproc)" all V=1)
|
||||
(cd lib/dns && make -j"$(nproc)" all V=1)
|
||||
|
||||
|
@ -26,9 +26,13 @@ LIBDNS_CFLAGS="-Ilib/dns/include"
|
|||
LIBISC_LIBS="lib/isc/.libs/libisc.a -Wl,-Bstatic -lssl -lcrypto -luv -lnghttp2 -Wl,-Bdynamic"
|
||||
LIBDNS_LIBS="lib/dns/.libs/libdns.a -Wl,-Bstatic -lcrypto -Wl,-Bdynamic"
|
||||
|
||||
# dns_name_fromwire needs old.c/old.h code to be linked in
|
||||
sed -i 's/#include "old.h"/#include "old.c"/' fuzz/dns_name_fromwire.c
|
||||
|
||||
for fuzzer in fuzz/*.c; do
|
||||
output=$(basename "${fuzzer%.c}")
|
||||
[ "$output" = "main" ] && continue
|
||||
[ "$output" = "old" ] && continue
|
||||
# We need to try little bit harder to link everything statically
|
||||
(cd fuzz && make -j"$(nproc)" "${output}.o" V=1)
|
||||
${CXX} ${CXXFLAGS} \
|
||||
|
|
|
@ -13,7 +13,5 @@ auto_ccs:
|
|||
- "pspacek@isc.org"
|
||||
sanitizers:
|
||||
- address
|
||||
- memory:
|
||||
experimental: True
|
||||
- undefined
|
||||
main_repo: 'https://gitlab.isc.org/isc-projects/bind9.git'
|
||||
|
|
Loading…
Reference in New Issue