diff --git a/projects/readstat/build.sh b/projects/readstat/build.sh index d9ebfbc55..17d3de281 100644 --- a/projects/readstat/build.sh +++ b/projects/readstat/build.sh @@ -24,12 +24,16 @@ make make generate_corpus ./generate_corpus -zip $OUT/fuzz_format_dta_seed_corpus.zip corpus/dta*/test-case-* -zip $OUT/fuzz_format_por_seed_corpus.zip corpus/por/test-case-* -zip $OUT/fuzz_format_sav_seed_corpus.zip corpus/sav*/test-case-* corpus/zsav/test-case-* -zip $OUT/fuzz_format_sas7bcat_seed_corpus.zip corpus/sas7bcat/test-case-* -zip $OUT/fuzz_format_sas7bdat_seed_corpus.zip corpus/sas7bdat*/test-case-* -zip $OUT/fuzz_format_xport_seed_corpus.zip corpus/xpt*/test-case-* +zip $OUT/fuzz_format_dta_seed_corpus.zip ./fuzz/corpus/dta*/test-case-* +zip $OUT/fuzz_format_por_seed_corpus.zip ./fuzz/corpus/por/test-case-* +zip $OUT/fuzz_format_sav_seed_corpus.zip ./fuzz/corpus/sav*/test-case-* ./fuzz/corpus/zsav/test-case-* +zip $OUT/fuzz_format_sas7bcat_seed_corpus.zip ./fuzz/corpus/sas7bcat/test-case-* +zip $OUT/fuzz_format_sas7bdat_seed_corpus.zip ./fuzz/corpus/sas7bdat*/test-case-* +zip $OUT/fuzz_format_xport_seed_corpus.zip ./fuzz/corpus/xpt*/test-case-* + +cp ./fuzz/dict/fuzz_format_spss_commands.dict $OUT/fuzz_format_spss_commands.dict +cp ./fuzz/dict/fuzz_format_stata_commands.dict $OUT/fuzz_format_stata_commands.dict +cp ./fuzz/dict/fuzz_format_sas_commands.dict $OUT/fuzz_format_sas_commands.dict READSTAT_FUZZERS=" fuzz_compression_sav \ diff --git a/projects/readstat/fuzz_format_sas_commands.dict b/projects/readstat/fuzz_format_sas_commands.dict new file mode 100644 index 000000000..2c8d14b2d --- /dev/null +++ b/projects/readstat/fuzz_format_sas_commands.dict @@ -0,0 +1,37 @@ +" " +"#" +"$" +"$CHAR" +"%LET" +"(" +")" +"*/" +"/*" +";" +"@" +"ATTRIB" +"CLEAR" +"CONTENTS" +"DATA" +"DATE" +"FILENAME" +"FOOTNOTE" +"FORMAT" +"IF" +"INFILE" +"INPUT" +"INVALUE" +"LABEL" +"LENGTH" +"LIBNAME" +"LIST" +"MISSING" +"OPTIONS" +"OTHER" +"PRINT" +"PROC" +"RUN" +"VALUE" +"_ALL_" +"dlm" +"firstobs" diff --git a/projects/readstat/fuzz_format_spss_commands.dict b/projects/readstat/fuzz_format_spss_commands.dict new file mode 100644 index 000000000..a9debe0ef --- /dev/null +++ b/projects/readstat/fuzz_format_spss_commands.dict @@ -0,0 +1,46 @@ +"(" +"(NOMINAL)" +"(ORDINAL)" +"(SCALE)" +")" +"." +"/" +"/VARIABLES" +"=" +" " +"A" +"ADATE" +"COMMENT" +"DATA" +"DATASET" +"DATE" +"DELIMITERS" +"DICTIONARY" +"DISPLAY" +"END" +"EXECUTE" +"F" +"FILE" +"FIRSTCASE" +"FIXED" +"FORMATS" +"HANDLE" +"IF" +"INPUT" +"LABEL" +"LABELS" +"LEVEL" +"LIST" +"NAME" +"OUTFILE" +"PROGRAM" +"RECODE" +"RECORD" +"SAVE" +"SELECT" +"SET" +"SYSMIS" +"TABLE" +"VALUE" +"VARIABLE" +"WINDOW" diff --git a/projects/readstat/fuzz_format_stata_commands.dict b/projects/readstat/fuzz_format_stata_commands.dict new file mode 100644 index 000000000..2c619db82 --- /dev/null +++ b/projects/readstat/fuzz_format_stata_commands.dict @@ -0,0 +1,22 @@ +" " +")" +"*/" +"/*" +"_column(" +"_firstlineoffile(" +"_line(" +"_lines(" +"_lrecl(" +"_newline" +"_skip(" +"byte" +"dictionary" +"double" +"float" +"infile" +"int" +"long" +"str" +"using" +"{" +"}"