diff options
author | Jay Berkenbilt <ejb@ql.org> | 2019-01-30 20:26:08 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2019-01-31 15:26:37 +0100 |
commit | 2b6c79bcaeee0548f3d7291876eb3821e14b8227 (patch) | |
tree | 5152859c6f94227d0bc2edb6b59250a24d4b6603 /include | |
parent | ec9e310c9ea9cee8d9e16cad2a68f0ad096f3a4b (diff) | |
download | qpdf-2b6c79bcaeee0548f3d7291876eb3821e14b8227.tar.zst |
Improve locating inline image's EI
We've actually seen a PDF file in the wild that contained EI
surrounded by delimiters inside the image data, which confused qpdf's
naive code. This significantly improves EI detection.
Diffstat (limited to 'include')
-rw-r--r-- | include/qpdf/QPDFTokenizer.hh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/qpdf/QPDFTokenizer.hh b/include/qpdf/QPDFTokenizer.hh index 31f2f398..424ac099 100644 --- a/include/qpdf/QPDFTokenizer.hh +++ b/include/qpdf/QPDFTokenizer.hh @@ -198,6 +198,7 @@ class QPDFTokenizer void resolveLiteral(); bool isSpace(char); bool isDelimiter(char); + void findEI(PointerHolder<InputSource> input); enum state_e { st_top, st_in_space, st_in_comment, st_in_string, st_lt, st_gt, |