Skip to content

Commit 2c45a50

Browse files
committed
Fix fuzz build
1 parent 0c0c251 commit 2c45a50

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

projects/openjph/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,4 @@
1616

1717
FROM gcr.io/oss-fuzz-base/base-builder
1818
RUN apt-get update && apt-get install -y cmake libtiff-dev zip
19-
RUN git clone --depth 1 https://github.com/aous72/OpenJPH.git
2019
COPY build.sh .

projects/openjph/build.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@
1616
################################################################################
1717

1818
# Build the fuzz targets
19+
git clone --branch issue/fix-oss-fuzz-build https://github.com/sandflow/OpenJPH.git
1920
mkdir $SRC/build/
2021
cd $SRC/build/
21-
cmake $SRC/OpenJPH -DBUILD_SHARED_LIBS=OFF -DOJPH_BUILD_FUZZER=ON
22-
make
22+
cmake $SRC/OpenJPH -DBUILD_SHARED_LIBS=OFF -DOJPH_BUILD_FUZZER=ON -DCMAKE_CXX_FLAGS="$CXXFLAGS" -DCMAKE_C_FLAGS="$CFLAGS"
23+
make -j$(nproc)
2324
cp fuzzing/ojph_expand_fuzz_target $OUT
2425

2526
# Initialize the seed corpus

projects/openjph/project.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,11 @@ auto_ccs:
55
- "pal@sandflow.com"
66
- "miksmith@gmail.com"
77
- "aous@unsw.edu.au"
8+
fuzzing_engines:
9+
- libfuzzer
10+
- afl
11+
- honggfuzz
12+
sanitizers:
13+
- address
14+
- memory
815
main_repo: "https://github.com/aous72/OpenJPH"

0 commit comments

Comments
 (0)