mirror of https://github.com/google/oss-fuzz.git
[simdjson] move the build script into the simdjson repo (#3013)
this means it can be maintained and bugfixed upstream
This commit is contained in:
parent
4ab29a2369
commit
12b7ac580f
|
@ -26,7 +26,7 @@ RUN wget --quiet https://github.com/Kitware/CMake/releases/download/v${CMAKEVER}
|
|||
./cmake-${CMAKEVER}-Linux-x86_64.sh --skip-license --prefix="/usr/local"
|
||||
|
||||
# point to https://github.com/lemire/simdjson.git once integrated
|
||||
RUN git clone --depth 1 --single-branch --branch paul/ossfuzz_step1 https://github.com/pauldreik/simdjson.git simdjson
|
||||
RUN git clone --depth 1 --single-branch --branch paul/ossfuzz_step2 https://github.com/pauldreik/simdjson.git simdjson
|
||||
WORKDIR simdjson
|
||||
COPY build.sh $SRC/
|
||||
|
||||
|
|
|
@ -15,26 +15,4 @@
|
|||
#
|
||||
################################################################################
|
||||
|
||||
# build the corpus (all inputs are json, the same corpus can be used for everyone)
|
||||
fuzz/build_corpus.sh
|
||||
|
||||
mkdir build
|
||||
cd build
|
||||
|
||||
cmake .. \
|
||||
-GNinja \
|
||||
-DCMAKE_BUILD_TYPE=Debug \
|
||||
-DSIMDJSON_BUILD_STATIC=On \
|
||||
-DENABLE_FUZZING=On \
|
||||
-DSIMDJSON_FUZZ_LINKMAIN=Off \
|
||||
-DSIMDJSON_FUZZ_LDFLAGS=$LIB_FUZZING_ENGINE
|
||||
|
||||
cmake --build .
|
||||
|
||||
cp fuzz/fuzz_* $OUT
|
||||
|
||||
# all corpora are equal, they all take json as input
|
||||
for f in $OUT/fuzz* ; do
|
||||
cp ../corpus.zip $(basename $f).zip
|
||||
done
|
||||
|
||||
fuzz/ossfuzz.sh
|
||||
|
|
Loading…
Reference in New Issue