diff options
author | Jay Berkenbilt <ejb@ql.org> | 2024-02-04 21:59:18 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2024-02-04 23:27:49 +0100 |
commit | cb0f390cc1f98a8e82b27259f8f3cd5f162992eb (patch) | |
tree | f60552d33dac33d5e146947ef97e988b91071d46 /qpdf/qtest/qpdf-json.test | |
parent | 7caa9ddf5a8b272c94fa5d4c079f2be8eabff983 (diff) | |
download | qpdf-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.test | 2 |
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); |