mirror of https://github.com/google/oss-fuzz.git
[json] using projects build file
This commit is contained in:
parent
5faaddd044
commit
f329e00249
|
@ -16,7 +16,7 @@
|
|||
|
||||
FROM ossfuzz/base-libfuzzer
|
||||
MAINTAINER vitalybuka@gmail.com
|
||||
RUN apt-get install -y binutils gcc
|
||||
RUN apt-get install -y binutils make
|
||||
|
||||
RUN git clone --depth 1 -b develop https://github.com/nlohmann/json.git
|
||||
WORKDIR json/
|
||||
|
|
|
@ -15,9 +15,11 @@
|
|||
#
|
||||
################################################################################
|
||||
|
||||
FUZZER_FILES=$(find -name "fuzzer-parse*.cpp")
|
||||
make FUZZER_ENGINE="-lFuzzingEngine" fuzzers -Ctest
|
||||
|
||||
FUZZER_FILES=$(find test/ -maxdepth 1 -executable -type f)
|
||||
for F in $FUZZER_FILES; do
|
||||
cp $F $OUT/
|
||||
FUZZER=$(basename $F .cpp)
|
||||
$CXX $CXXFLAGS -std=c++11 -Isrc/ $F -o $OUT/$FUZZER -lFuzzingEngine
|
||||
cp $SRC/fuzzer-parse.options $OUT/$FUZZER.options
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue