[cryptofuzz] Remove Java (#10006)

Unfortunately it's not working.

https://github.com/google/oss-fuzz/issues/9255
This commit is contained in:
Guido Vranken 2023-04-11 18:37:00 +02:00 committed by GitHub
parent 990b6fe203
commit e25234076c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 17 deletions

View File

@ -27,8 +27,8 @@ RUN git clone --depth 1 https://github.com/guidovranken/cryptofuzz
RUN git clone --depth 1 https://github.com/guidovranken/cryptofuzz-corpora
RUN git clone --depth 1 https://github.com/openssl/openssl
RUN git clone --depth 1 https://boringssl.googlesource.com/boringssl
RUN git clone --depth 1 https://github.com/weidai11/cryptopp/
RUN git clone --depth 1 git://git.gnupg.org/libgcrypt.git
RUN git clone --depth 1 https://github.com/weidai11/cryptopp/
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 git clone --depth 1 https://github.com/google/cityhash.git
@ -57,7 +57,6 @@ RUN apt-get remove -y libunwind8
RUN apt-get install -y libssl-dev
RUN wget https://boostorg.jfrog.io/artifactory/main/release/1.74.0/source/boost_1_74_0.tar.bz2
RUN wget https://nodejs.org/dist/v14.17.1/node-v14.17.1-linux-x64.tar.xz
RUN wget https://download.java.net/java/GA/jdk18.0.1/3f48cabb83014f9fab465e280ccf630b/10/GPL/openjdk-18.0.1_linux-x64_bin.tar.gz
RUN pip3 install -r $SRC/mbedtls/scripts/basic.requirements.txt
RUN bash -c "wget $(curl https://ziglang.org/download/index.json | jq -r '.master."x86_64-linux".tarball') -O zig-latest.tar.xz"

View File

@ -94,21 +94,6 @@ then
make
fi
# Compile Java module
if [ "$SANITIZER" = undefined ]; then
mkdir -p $OUT/lib/
cd $OUT/lib/
tar zxf $SRC/openjdk-18.0.1_linux-x64_bin.tar.gz
export JDK_PATH=$(realpath jdk-18.0.1)
cp $JDK_PATH/lib/server/libjvm.so $OUT/lib/
export LINK_FLAGS="$LINK_FLAGS -L$JDK_PATH/lib/server/ -ljvm"
export CXXFLAGS="$CXXFLAGS -DCRYPTOFUZZ_JAVA"
cd $SRC/cryptofuzz/modules/java/
make -f Makefile-OSS-Fuzz -j$(nproc)
cp CryptofuzzJavaHarness.class $OUT/
fi
if [[ $CFLAGS != *-m32* && "$SANITIZER" != "coverage" ]]
then
cd $SRC/