From 4a4736c6954ab17d923a6d2968f34a33e09d714f Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sun, 5 Aug 2018 18:59:41 -0400 Subject: 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. --- include/qpdf/QPDFTokenizer.hh | 1 + 1 file changed, 1 insertion(+) (limited to 'include') 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 m; }; -- cgit v1.2.3-54-g00ecf