From 2fded4446bdd6e89f5f685d3bc66dab8e1fc6afc Mon Sep 17 00:00:00 2001 From: DavidKorczynski Date: Tue, 13 Feb 2024 12:13:12 +0000 Subject: [PATCH] inchi: adjust build to latest upstream (#11598) Fixes: https://github.com/google/oss-fuzz/issues/11591 Signed-off-by: David Korczynski --- projects/inchi/Dockerfile | 5 ++--- projects/inchi/build.sh | 1 + projects/inchi/project.yaml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/projects/inchi/Dockerfile b/projects/inchi/Dockerfile index ce2f39874..4de739242 100644 --- a/projects/inchi/Dockerfile +++ b/projects/inchi/Dockerfile @@ -16,7 +16,6 @@ FROM gcr.io/oss-fuzz-base/base-builder RUN apt-get update && apt-get install -y wget make unzip git -RUN wget https://www.inchi-trust.org/download/106/INCHI-1-SRC.zip -RUN unzip INCHI-1-SRC.zip -WORKDIR INCHI-1-SRC +RUN git clone --depth=1 https://github.com/IUPAC-InChI/InChI inchi +WORKDIR inchi COPY build.sh *_fuzzer.c $SRC/ diff --git a/projects/inchi/build.sh b/projects/inchi/build.sh index 50c331465..0d615fe74 100644 --- a/projects/inchi/build.sh +++ b/projects/inchi/build.sh @@ -15,6 +15,7 @@ # ################################################################################ +cd INCHI-1-SRC $CC $CFLAGS -Wno-everything -DTARGET_API_LIB -DCOMPILE_ANSI_ONLY -ansi -c \ INCHI_BASE/src/*.c INCHI_API/libinchi/src/*.c INCHI_API/libinchi/src/ixa/*.c ar rcs $WORK/libinchi.a *.o diff --git a/projects/inchi/project.yaml b/projects/inchi/project.yaml index 226cea89f..1a5838b83 100644 --- a/projects/inchi/project.yaml +++ b/projects/inchi/project.yaml @@ -1,5 +1,5 @@ homepage: "https://www.inchi-trust.org/" -main_repo: "https://github.com/metamolecular/inchi" +main_repo: "https://github.com/IUPAC-InChI/InChI" language: c primary_contact: "member-info@inchi-trust.org" sanitizers: