Add dictionary to json project (#3954)

This commit is contained in:
Tanuj Garg 2020-06-12 12:01:03 +05:30 committed by GitHub
parent 7002484fd4
commit 9099c20d9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 54 additions and 1 deletions

View File

@ -20,4 +20,4 @@ RUN apt-get update && apt-get install -y binutils make
RUN git clone --depth 1 -b develop https://github.com/nlohmann/json.git
WORKDIR json/
COPY build.sh *.options $SRC/
COPY build.sh *.options parse_afl_fuzzer.dict $SRC/

View File

@ -23,3 +23,4 @@ for F in $FUZZER_FILES; do
FUZZER=$(basename $F .cpp)
cp $SRC/fuzzer-parse.options $OUT/$FUZZER.options
done
cp $SRC/parse_afl_fuzzer.dict $OUT/

View File

@ -0,0 +1,52 @@
#
# AFL dictionary for JSON
# -----------------------
#
# Just the very basics.
#
# Inspired by a dictionary by Jakub Wilk <jwilk@jwilk.net>
#
"0"
",0"
":0"
"0:"
"-1.2e+3"
"true"
"false"
"null"
"\"\""
",\"\""
":\"\""
"\"\":"
"{}"
",{}"
":{}"
"{\"\":0}"
"{{}}"
"[]"
",[]"
":[]"
"[0]"
"[[]]"
"''"
"\\"
"\\b"
"\\f"
"\\n"
"\\r"
"\\t"
"\\u0000"
"\\x00"
"\\0"
"\\uD800\\uDC00"
"\\uDBFF\\uDFFF"
"\"\":0"
"//"
"/**/"