mirror of https://github.com/google/oss-fuzz.git
[cryptofuzz] Cityhash reference implementation (#2636)
This commit is contained in:
parent
8adb1a1fcc
commit
f5f49fdc7f
|
@ -37,6 +37,7 @@ RUN wget https://gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-1.36.tar.bz2
|
|||
RUN git clone --depth 1 -b oss-fuzz https://github.com/project-everest/hacl-star evercrypt
|
||||
RUN wget https://github.com/openssl/openssl/archive/OpenSSL_1_1_0-stable.zip
|
||||
RUN wget https://github.com/openssl/openssl/archive/OpenSSL_1_0_2-stable.zip
|
||||
RUN git clone --depth 1 https://github.com/google/cityhash.git
|
||||
RUN apt-get remove -y libunwind8
|
||||
|
||||
COPY build.sh $SRC/
|
||||
|
|
|
@ -36,6 +36,14 @@ then
|
|||
export CXXFLAGS="$CXXFLAGS -DMSAN"
|
||||
fi
|
||||
|
||||
# Compile Cityhash
|
||||
cd $SRC/cityhash
|
||||
./configure >/dev/null 2>&1
|
||||
make -j$(nproc) >/dev/null 2>&1
|
||||
|
||||
export CXXFLAGS="$CXXFLAGS -I$SRC/cityhash/src"
|
||||
export CRYPTOFUZZ_REFERENCE_CITY_O_PATH="$SRC/cityhash/src/city.o"
|
||||
|
||||
##############################################################################
|
||||
if [[ $CFLAGS != *sanitize=memory* ]]
|
||||
then
|
||||
|
|
Loading…
Reference in New Issue