jq: add new fuzzer from upstream (#11333)

Ref: https://github.com/jqlang/jq/pull/2965
This commit is contained in:
DavidKorczynski 2023-12-07 12:31:56 +00:00 committed by GitHub
parent 02416bda4c
commit 9731dd19a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -57,6 +57,12 @@ $CXX $CXXFLAGS $LIB_FUZZING_ENGINE ./tests/jq_fuzz_execute.cpp \
./.libs/libjq.a ./modules/oniguruma/src/.libs/libonig.a \
-o $OUT/jq_fuzz_execute -I./src
$CXX $CXXFLAGS $LIB_FUZZING_ENGINE ./tests/jq_fuzz_fixed.cpp \
-I./src \
./.libs/libjq.a ./modules/oniguruma/src/.libs/libonig.a \
-o $OUT/jq_fuzz_fixed -I./src
# Build corpus
mkdir $SRC/seeds
find . -name "*.jq" -exec cp {} $SRC/seeds/ \;