aboutsummaryrefslogtreecommitdiffstats
path: root/include/qpdf/QPDFTokenizer.hh
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2018-08-06 00:59:41 +0200
committerJay Berkenbilt <ejb@ql.org>2018-08-06 02:48:35 +0200
commit4a4736c6954ab17d923a6d2968f34a33e09d714f (patch)
tree16add8bf68ddba38a83cf0933238a95fcc77b7cd /include/qpdf/QPDFTokenizer.hh
parent1619cad1e8ac6ba9cc87666caae9e71f20fd6b32 (diff)
downloadqpdf-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/qpdf/QPDFTokenizer.hh')
-rw-r--r--include/qpdf/QPDFTokenizer.hh1
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;
};