diff options
author | Jay Berkenbilt <ejb@ql.org> | 2019-08-28 04:10:11 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2019-08-28 04:27:47 +0200 |
commit | ba5fb6916446d8bdf79cba25f08d759bc5595aec (patch) | |
tree | da6691079e5feacc571127cc062482df9ba4399c /include/qpdf/Pipeline.hh | |
parent | dadf8307c83706c3b097bc4b1fe7b24defbebb8e (diff) | |
download | qpdf-ba5fb6916446d8bdf79cba25f08d759bc5595aec.tar.zst |
Make popping pipeline stack safer
Use destructors to pop the pipeline stack, and ensure that code that
pops the stack is actually popping the intended thing.
Diffstat (limited to 'include/qpdf/Pipeline.hh')
-rw-r--r-- | include/qpdf/Pipeline.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/qpdf/Pipeline.hh b/include/qpdf/Pipeline.hh index 36a25df0..e8f62b4e 100644 --- a/include/qpdf/Pipeline.hh +++ b/include/qpdf/Pipeline.hh @@ -70,6 +70,8 @@ class QPDF_DLL_CLASS Pipeline virtual void write(unsigned char* data, size_t len) = 0; QPDF_DLL virtual void finish() = 0; + QPDF_DLL + std::string getIdentifier() const; protected: Pipeline* getNext(bool allow_null = false); |