mirror of https://github.com/DaveGamble/cJSON.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
529 B
18 lines
529 B
#!/bin/bash -eu
|
|
|
|
# This script is meant to be run by
|
|
# https://github.com/google/oss-fuzz/blob/master/projects/cjson/Dockerfile
|
|
|
|
mkdir build
|
|
cd build
|
|
cmake -DBUILD_SHARED_LIBS=OFF -DENABLE_CJSON_TEST=OFF ..
|
|
make -j$(nproc)
|
|
|
|
$CXX $CXXFLAGS $SRC/cjson/fuzzing/cjson_read_fuzzer.c -I. \
|
|
-o $OUT/cjson_read_fuzzer \
|
|
$LIB_FUZZING_ENGINE $SRC/cjson/build/libcjson.a
|
|
|
|
find $SRC/cjson/fuzzing/inputs -name "*" | \
|
|
xargs zip $OUT/cjson_read_fuzzer_seed_corpus.zip
|
|
|
|
cp $SRC/cjson/fuzzing/json.dict $OUT/cjson_read_fuzzer.dict
|
|
|