diff options
author | Jay Berkenbilt <ejb@ql.org> | 2013-03-03 21:48:31 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2013-03-05 19:35:46 +0100 |
commit | 119f2a4b684aae7cec8841412a5fc89bcbae404d (patch) | |
tree | 46b9247b59b4f9b07ecae4b14991f4840db9a89e /qpdf/test_driver.cc | |
parent | 7be97b3e80bdb856c9d1fe720f9ee14a8063b5fa (diff) | |
download | qpdf-119f2a4b684aae7cec8841412a5fc89bcbae404d.tar.zst |
Add method to terminate content stream parsing
Diffstat (limited to 'qpdf/test_driver.cc')
-rw-r--r-- | qpdf/test_driver.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/qpdf/test_driver.cc b/qpdf/test_driver.cc index 75f5b973..3863cdbe 100644 --- a/qpdf/test_driver.cc +++ b/qpdf/test_driver.cc @@ -72,6 +72,11 @@ class ParserCallbacks: public QPDFObjectHandle::ParserCallbacks void ParserCallbacks::handleObject(QPDFObjectHandle obj) { + if (obj.isName() && (obj.getName() == "/Abort")) + { + std::cout << "test suite: terminating parsing" << std::endl; + terminateParsing(); + } std::cout << obj.getTypeName() << ": "; if (obj.isInlineImage()) { |