From f0fb19df9d31a550960fac12a6cc96432b885bba Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sun, 4 Feb 2024 16:00:36 -0500 Subject: 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. --- .../17373dd41d35412356114b8e7a6cecdbe89d6d89 | 76 ++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 fuzz/json_fuzzer_seed_corpus/17373dd41d35412356114b8e7a6cecdbe89d6d89 (limited to 'fuzz/json_fuzzer_seed_corpus/17373dd41d35412356114b8e7a6cecdbe89d6d89') diff --git a/fuzz/json_fuzzer_seed_corpus/17373dd41d35412356114b8e7a6cecdbe89d6d89 b/fuzz/json_fuzzer_seed_corpus/17373dd41d35412356114b8e7a6cecdbe89d6d89 new file mode 100644 index 00000000..4e4706f9 --- /dev/null +++ b/fuzz/json_fuzzer_seed_corpus/17373dd41d35412356114b8e7a6cecdbe89d6d89 @@ -0,0 +1,76 @@ +{ + "qpdf": [ + { + "jsonversion": 2, + "pdfversion": "1.3", + "pushedinheritedpageresources": false, + "calledgetallpages": false, + "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", + "/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": "QlQKICAvRjEgMjQgVGYKICA3MiA3MjAgVGQKICAoUG90YXRvKSBUagpFVAo=", + "dict": {} + } + }, + "obj:5 0 R": { + "value": [ + "/PDF", + "/Text" + ] + }, + "obj:6 0 R": { + "value": { + "/BaseFont": "/Helvetica", + "/Encoding": "/WinAnsiEncoding", + "/Name": "/F1", + "/Subtype": "/Type1", + "/Type": "/Font" + } + }, + "trailer": { + "value": { + "/QTest": "u:¡Hola!", + "/Root": "1 0 R", + "/Size": 7, + "/Z": "b:279e79d4051fe36af8d7b8425e510a8b39940d447c6be3a24a5a6d3abd6c99025c" + } + } + } + ] +} -- cgit v1.2.3-54-g00ecf