diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-12-01 15:30:25 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-12-01 19:34:52 +0000 |
commit | b1f91c0a04dd751d4f6cb8352bcbaa16c9388285 (patch) | |
tree | ca017fb7230211cc53a5589408c929a6be55b271 /xmlsecurity/qa/unit/pdfsigning | |
parent | cdf2ae1b6611976816fa60aae370893657c622d0 (diff) |
xmlsecurity PDF verify: handle no EOL at EOF
From a comment's point of view, EOF is just a terminator, similar to \r
or \n.
Change-Id: I120bf1e75f1eb81a550af643051e6fc472873eff
Reviewed-on: https://gerrit.libreoffice.org/31499
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'xmlsecurity/qa/unit/pdfsigning')
-rw-r--r-- | xmlsecurity/qa/unit/pdfsigning/data/noeol.pdf | bin | 0 -> 83693 bytes | |||
-rw-r--r-- | xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx | 2 |
2 files changed, 2 insertions, 0 deletions
diff --git a/xmlsecurity/qa/unit/pdfsigning/data/noeol.pdf b/xmlsecurity/qa/unit/pdfsigning/data/noeol.pdf Binary files differnew file mode 100644 index 000000000000..d870f896cab0 --- /dev/null +++ b/xmlsecurity/qa/unit/pdfsigning/data/noeol.pdf diff --git a/xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx b/xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx index 945bfd3298e3..6e5e476532ee 100644 --- a/xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx +++ b/xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx @@ -392,6 +392,8 @@ void PDFSigningTest::testTokenize() OUStringLiteral("cr-comment.pdf"), // ']' in a name token was mishandled. OUStringLiteral("name-bracket.pdf"), + // %%EOF at the end wasn't followed by a newline. + OUStringLiteral("noeol.pdf"), }; for (const auto& rName : aNames) |