aboutsummaryrefslogtreecommitdiffstats
path: root/fuzz
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2024-02-06 21:30:29 +0100
committerJay Berkenbilt <ejb@ql.org>2024-02-06 21:30:29 +0100
commitb1b789df4203296a848fec6a3513f30efceb1a45 (patch)
treee1a506f8a74be0f502b05ce0f17c1816d162c129 /fuzz
parent3490090fbc7266dfcf7c80c6766d4d557b314292 (diff)
downloadqpdf-b1b789df4203296a848fec6a3513f30efceb1a45.tar.zst
Detect end of input inside an unfinished JSON string
Diffstat (limited to 'fuzz')
-rw-r--r--fuzz/json_fuzzer_seed_corpus/9bc1baa450a0977fb3ac06c1ddb3fc2d4c05a5ce1
-rw-r--r--fuzz/qtest/fuzz.test2
2 files changed, 2 insertions, 1 deletions
diff --git a/fuzz/json_fuzzer_seed_corpus/9bc1baa450a0977fb3ac06c1ddb3fc2d4c05a5ce b/fuzz/json_fuzzer_seed_corpus/9bc1baa450a0977fb3ac06c1ddb3fc2d4c05a5ce
new file mode 100644
index 00000000..09495bc1
--- /dev/null
+++ b/fuzz/json_fuzzer_seed_corpus/9bc1baa450a0977fb3ac06c1ddb3fc2d4c05a5ce
@@ -0,0 +1 @@
+{"qpdf":[{},{"obj:1 0 R":{"stream":{"data":" \ No newline at end of file
diff --git a/fuzz/qtest/fuzz.test b/fuzz/qtest/fuzz.test
index 28676339..7235140d 100644
--- a/fuzz/qtest/fuzz.test
+++ b/fuzz/qtest/fuzz.test
@@ -16,7 +16,7 @@ my @fuzzers = (
['dct' => 1],
['flate' => 1],
['hex' => 1],
- ['json' => 39],
+ ['json' => 40],
['lzw' => 2],
['pngpredictor' => 1],
['runlength' => 6],