diff options
author | Jay Berkenbilt <ejb@ql.org> | 2018-08-06 00:59:41 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2018-08-06 02:48:35 +0200 |
commit | 4a4736c6954ab17d923a6d2968f34a33e09d714f (patch) | |
tree | 16add8bf68ddba38a83cf0933238a95fcc77b7cd /include | |
parent | 1619cad1e8ac6ba9cc87666caae9e71f20fd6b32 (diff) | |
download | qpdf-4a4736c6954ab17d923a6d2968f34a33e09d714f.tar.zst |
Fix EOL handling inside strings (fixes #226)
CR, CRLF, and LF are all supposed to be treated as LF; only one EOL is
to be ignored after backslash.
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 eb9215aa..09205052 100644 --- a/include/qpdf/QPDFTokenizer.hh +++ b/include/qpdf/QPDFTokenizer.hh @@ -229,6 +229,7 @@ class QPDFTokenizer bool string_ignoring_newline; char bs_num_register[4]; bool last_char_was_bs; + bool last_char_was_cr; }; PointerHolder<Members> m; }; |