aboutsummaryrefslogtreecommitdiffstats
path: root/qpdf/qtest/qpdf-json.test
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2024-02-04 21:59:18 +0100
committerJay Berkenbilt <ejb@ql.org>2024-02-04 23:27:49 +0100
commitcb0f390cc1f98a8e82b27259f8f3cd5f162992eb (patch)
treef60552d33dac33d5e146947ef97e988b91071d46 /qpdf/qtest/qpdf-json.test
parent7caa9ddf5a8b272c94fa5d4c079f2be8eabff983 (diff)
downloadqpdf-cb0f390cc1f98a8e82b27259f8f3cd5f162992eb.tar.zst
Handle parse error stream data (fixes #1123)
A parse error in stream data in which stream data contained a nested object would cause a crash because qpdf was not correctly updating its internal state. Rework the QPDF json reactor to not be sensitive to parse errors in this way.
Diffstat (limited to 'qpdf/qtest/qpdf-json.test')
-rw-r--r--qpdf/qtest/qpdf-json.test2
1 files changed, 2 insertions, 0 deletions
diff --git a/qpdf/qtest/qpdf-json.test b/qpdf/qtest/qpdf-json.test
index 0ea126ec..2f7bcd86 100644
--- a/qpdf/qtest/qpdf-json.test
+++ b/qpdf/qtest/qpdf-json.test
@@ -37,6 +37,8 @@ my @badfiles = (
'obj-key-errors',
'bad-data',
'bad-datafile',
+ 'bad-data2',
+ 'bad-datafile2',
);
$n_tests += scalar(@badfiles);