aboutsummaryrefslogtreecommitdiffstats
path: root/fuzz/json_fuzzer_seed_corpus/393aefa985090be2e48f69f7a0305ecbce89ad26
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2024-02-04 22:00:36 +0100
committerJay Berkenbilt <ejb@ql.org>2024-02-04 23:27:49 +0100
commitf0fb19df9d31a550960fac12a6cc96432b885bba (patch)
treecb1276db708d22a1f569a695529504fb6a397512 /fuzz/json_fuzzer_seed_corpus/393aefa985090be2e48f69f7a0305ecbce89ad26
parentcb0f390cc1f98a8e82b27259f8f3cd5f162992eb (diff)
downloadqpdf-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/393aefa985090be2e48f69f7a0305ecbce89ad26')
-rw-r--r--fuzz/json_fuzzer_seed_corpus/393aefa985090be2e48f69f7a0305ecbce89ad2662
1 files changed, 62 insertions, 0 deletions
diff --git a/fuzz/json_fuzzer_seed_corpus/393aefa985090be2e48f69f7a0305ecbce89ad26 b/fuzz/json_fuzzer_seed_corpus/393aefa985090be2e48f69f7a0305ecbce89ad26
new file mode 100644
index 00000000..cef9c554
--- /dev/null
+++ b/fuzz/json_fuzzer_seed_corpus/393aefa985090be2e48f69f7a0305ecbce89ad26
@@ -0,0 +1,62 @@
+{
+ "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"
+ },
+ "stream": {
+ "data": "QlQKICAvRjEgMjQgVGYKICA3MiA3MjAgVGQKICAoUG90YXRvKSBUagpFVAo=",
+ "dict": {}
+ }
+ },
+ "obj:3 0 R": {
+ "potato": {
+ "salad": "ignored-so-no-string-error",
+ "nested": [1, 2, {"x": "y"}]
+ }
+ },
+ "obj:4 0 R": {
+ "stream": {
+ "potato": "u:salad"
+ }
+ },
+ "obj:5 0 R": {
+ "stream": {
+ "dic„": {"/A": "/B"},
+ "data": "QlQKICAvRjEgMjQgVGYKICA3MiA3MjAgVGQKICAoUG90YXRvKSBUagpFVAo=",
+ "datafile": "abc"
+ }
+ },
+ "obj:6 0 R": {
+ "value": {
+ "/BaseFont": "/Helvetica",
+ "/Encoding": "/WinAnsiEncoding",
+ "/Subtype": "/Type0",
+ "/Type": "/Font"
+ }
+ },
+ "trailer": {
+ "potato": {
+ "/Root": "1 0 R",
+ "/Size": 7
+ }
+ }
+ }
+ ]
+}