upgrade to more recent fuzzing dicts and use some additional ones

that look a good fit for the formats we're already fuzzing

Change-Id: Ie635d17d829858c0cb10f71ea936f8dc131db811
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151052
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
Caolán McNamara
2023-04-26 11:00:25 +01:00
parent 33775c5d05
commit e2279c7345
9 changed files with 21 additions and 8 deletions

View File

@@ -78,12 +78,19 @@ cd $SRC
#fuzzing dictionaries
curl --no-progress-meter -S \
-C - -O https://raw.githubusercontent.com/rc0r/afl-fuzz/master/dictionaries/gif.dict \
-C - -O https://raw.githubusercontent.com/rc0r/afl-fuzz/master/dictionaries/jpeg.dict \
-C - -O https://raw.githubusercontent.com/rc0r/afl-fuzz/master/dictionaries/png.dict \
-C - -O https://raw.githubusercontent.com/rc0r/afl-fuzz/master/dictionaries/tiff.dict \
-C - -O https://raw.githubusercontent.com/rc0r/afl-fuzz/master/dictionaries/xml.dict \
-C - -O https://raw.githubusercontent.com/rc0r/afl-fuzz/master/dictionaries/html_tags.dict
-C - -O https://raw.githubusercontent.com/google/fuzzing/master/dictionaries/gif.dict \
-C - -O https://raw.githubusercontent.com/google/fuzzing/master/dictionaries/jpeg.dict \
-C - -O https://raw.githubusercontent.com/google/fuzzing/master/dictionaries/png.dict \
-C - -O https://raw.githubusercontent.com/google/fuzzing/master/dictionaries/tiff.dict \
-C - -O https://raw.githubusercontent.com/google/fuzzing/master/dictionaries/xml.dict \
-C - -O https://raw.githubusercontent.com/google/fuzzing/master/dictionaries/html.dict \
-C - -O https://raw.githubusercontent.com/google/fuzzing/master/dictionaries/svg.dict \
-C - -O https://raw.githubusercontent.com/google/fuzzing/master/dictionaries/bmp.dict \
-C - -O https://raw.githubusercontent.com/google/fuzzing/master/dictionaries/otf.dict \
-C - -O https://raw.githubusercontent.com/google/fuzzing/master/dictionaries/psd.dict \
-C - -O https://raw.githubusercontent.com/google/fuzzing/master/dictionaries/rtf.dict \
-C - -O https://raw.githubusercontent.com/google/fuzzing/master/dictionaries/webp.dict \
-C - -O https://raw.githubusercontent.com/google/fuzzing/master/dictionaries/zip.dict
#fuzzing corpuses
#afl jpeg, gif, bmp, png, webp
curl --no-progress-meter -S -C - -O https://lcamtuf.coredump.cx/afl/demo/afl_testcases.tgz

View File

@@ -1,2 +1,3 @@
[libfuzzer]
max_len = 65536
dict = bmp.dict

View File

@@ -1,3 +1,3 @@
[libfuzzer]
max_len = 24576
dict = html_tags.dict
dict = html.dict

View File

@@ -1,2 +1,3 @@
[libfuzzer]
max_len = 65536
dict = psd.dict

View File

@@ -1,2 +1,3 @@
[libfuzzer]
max_len = 65536
dict = rtf.dict

View File

@@ -1,2 +1,3 @@
[libfuzzer]
max_len = 65536
dict = otf.dict

View File

@@ -1,3 +1,3 @@
[libfuzzer]
max_len = 32000
dict = xml.dict
dict = svg.dict

View File

@@ -1,2 +1,3 @@
[libfuzzer]
max_len = 65536
dict = webp.dict

View File

@@ -1,2 +1,3 @@
[libfuzzer]
max_len = 32000
dict = zip.dict