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/8fd054baa7219a3eee789ea45434fab88feda7e8 | |
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/8fd054baa7219a3eee789ea45434fab88feda7e8')
-rw-r--r-- | fuzz/json_fuzzer_seed_corpus/8fd054baa7219a3eee789ea45434fab88feda7e8 | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/fuzz/json_fuzzer_seed_corpus/8fd054baa7219a3eee789ea45434fab88feda7e8 b/fuzz/json_fuzzer_seed_corpus/8fd054baa7219a3eee789ea45434fab88feda7e8 new file mode 100644 index 00000000..6aca6a5a --- /dev/null +++ b/fuzz/json_fuzzer_seed_corpus/8fd054baa7219a3eee789ea45434fab88feda7e8 @@ -0,0 +1,89 @@ +{ + "qpdf": [ + { + "jsonversion": 2, + "pdfversion": "2.0", + "pushedinheritedpageresources": false, + "calledgetallpages": false, + "maxobjectid": 6 + }, + { + "obj:1 0 R": { + "value": { + "/Extra": [ + "u:Names with binary data", + "n:/ABCDEF+#ba#da#cc#e5", + "n:/OVERLONG+#c0#81", + "n:/OVERLONG+#e0#81#82", + "n:/OVERLONG+#f0#81#82#83", + "/range+\u0001", + "/low+\u0018", + "/ABCEDEF+π", + "n:/one+#a0two", + "/text/plain", + "u:Very small/large reals", + 0.00001, + 1000000000000 + ], + "/Pages": "2 0 R", + "/Type": "/Catalog", + "n:/WeirdKey+#ba#da#cc#e5": 42 + } + }, + "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" + } + }, + "/Type": "/Page" + } + }, + "obj:4 0 R": { + "stream": { + "data": "QlQKICAvRjEgMjQgVGYKICA3MiA3MjAgVGQKICAoUG90YXRvKSBUagpFVAo=", + "dict": {} + } + }, + "obj:5 0 R": { + "value": 44 + }, + "obj:6 0 R": { + "value": { + "/BaseFont": "/Helvetica", + "/Encoding": "/WinAnsiEncoding", + "/Subtype": "/Type1", + "/Type": "/Font" + } + }, + "trailer": { + "value": { + "/ID": [ + "b:42841c13bbf709d79a200fa1691836f8", + "b:728c020f464c3cf7e02c12605fa7d88b" + ], + "/Root": "1 0 R", + "/Size": 7 + } + } + } + ] +} |