diff options
author | Jay Berkenbilt <ejb@ql.org> | 2024-02-04 22:00:36 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2024-02-04 23:27:49 +0100 |
commit | f0fb19df9d31a550960fac12a6cc96432b885bba (patch) | |
tree | cb1276db708d22a1f569a695529504fb6a397512 /fuzz/json_fuzzer_seed_corpus/aa6751ffc4ea1a2df1f4227b06f4bc9e020dec00 | |
parent | cb0f390cc1f98a8e82b27259f8f3cd5f162992eb (diff) | |
download | qpdf-f0fb19df9d31a550960fac12a6cc96432b885bba.tar.zst |
Add json fuzzer with seed files from #1123 and test suite
...as well as some cases generated in CI from earlier attempts at
fixing this.
Diffstat (limited to 'fuzz/json_fuzzer_seed_corpus/aa6751ffc4ea1a2df1f4227b06f4bc9e020dec00')
-rw-r--r-- | fuzz/json_fuzzer_seed_corpus/aa6751ffc4ea1a2df1f4227b06f4bc9e020dec00 | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/fuzz/json_fuzzer_seed_corpus/aa6751ffc4ea1a2df1f4227b06f4bc9e020dec00 b/fuzz/json_fuzzer_seed_corpus/aa6751ffc4ea1a2df1f4227b06f4bc9e020dec00 new file mode 100644 index 00000000..64ee8050 --- /dev/null +++ b/fuzz/json_fuzzer_seed_corpus/aa6751ffc4ea1a2df1f4227b06f4bc9e020dec00 @@ -0,0 +1,71 @@ +{ + "qpdf": [ + { + "jsonversion": 2, + "pdfversion": "1.3", + "maxobjectid": 6 + }, + { + "obj:1 0 R": { + "value": { + "/Pages": "2 0 R", + "/Type": "/Catalog" + } + }, + "obj:2 0 R": { + "value": { + "/Count": 1, + "/Kids": [ + "3 0 R" + ], + "/Type": "/Pages" + } + }, + "obj:3 0 R": { + "value": { + "/Contents": ["4 0 R", "7 0 R"], + "/MediaBox": [ + 0, + 0, + 612, + 792 + ], + "/Parent": "2 0 R", + "/Resources": { + "/Font": { + "/F1": "6 0 R" + }, + "/ProcSet": "5 0 R" + }, + "/Type": "/Page" + } + }, + "obj:4 0 R": { + "stream": { + "data": "@not-base64@", + "dict": {} + } + }, + "obj:5 0 R": { + "value": [ + "/PDF", + "/Text" + ] + }, + "obj:6 0 R": { + "value": { + "/BaseFont": "/Helvetica", + "/Encoding": "/WinAnsiEncoding", + "/Subtype": "/Type1", + "/Type": "/Font" + } + }, + "trailer": { + "value": { + "/Root": "1 0 R", + "/Size": 7 + } + } + } + ] +} |