[ntp] Uses fresh sources for ntp project (#2774)

This commit is contained in:
Catena cyber 2019-08-29 17:20:20 +02:00 committed by Max Moroz
parent b2c715031d
commit 03ae506c15
2 changed files with 5 additions and 2 deletions

View File

@ -16,8 +16,9 @@
FROM gcr.io/oss-fuzz-base/base-builder
MAINTAINER security@ntp.org
RUN apt-get update && apt-get install -y make autoconf automake libtool bison flex
RUN apt-get update && apt-get install -y make autoconf automake libtool bison flex rsync lynx
#TODO use bitkeeper repo from http://bk.ntp.org
#or wait for update of RUN rsync -a archive.ntp.org::ntp-dev-src ntp-dev-src
ADD http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-dev/ntp-dev-4.3.99.tar.gz ntp-dev.tar.gz
WORKDIR $SRC
COPY build.sh $SRC/

View File

@ -18,7 +18,9 @@
tar -xvf ntp-dev.tar.gz
cd ntp-dev-4.3.99
git apply ../patch.diff
autoreconf -i
#avoids https://bugs.llvm.org/show_bug.cgi?id=34636
cp /usr/bin/ld.gold /usr/bin/ld
./bootstrap
./configure --enable-fuzztargets
make
cp tests/fuzz/fuzz_ntpd_receive $OUT/