diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-12-01 11:33:53 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-12-01 12:44:52 +0000 |
commit | 9b526a43e10a565875c879063f6df4bfe2ba9a80 (patch) | |
tree | 732dbe39f26f589f85502b88714036075293a9e2 /xmlsecurity/source/pdfio/pdfdocument.cxx | |
parent | 0233ff952372e9a15edf92beccba463d74c46c33 (diff) |
xmlsecurity PDF verify: CR is also a terminator of a comment
If we skip to the first NL, then we start tokenizing some XML as PDF
data and soon error out due to an unexpected keyword.
Change-Id: I86b540a014e5a92ea4376ed765385a2ee568a3c1
Reviewed-on: https://gerrit.libreoffice.org/31472
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'xmlsecurity/source/pdfio/pdfdocument.cxx')
-rw-r--r-- | xmlsecurity/source/pdfio/pdfdocument.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmlsecurity/source/pdfio/pdfdocument.cxx b/xmlsecurity/source/pdfio/pdfdocument.cxx index 86aff1eb3f5a..34a74747ff67 100644 --- a/xmlsecurity/source/pdfio/pdfdocument.cxx +++ b/xmlsecurity/source/pdfio/pdfdocument.cxx @@ -2627,7 +2627,7 @@ bool PDFCommentElement::Read(SvStream& rStream) rStream.ReadChar(ch); while (!rStream.IsEof()) { - if (ch == 0x0a) + if (ch == '\n' || ch == '\r') { m_aComment = aBuf.makeStringAndClear(); |