diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-12-01 17:31:41 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-12-01 19:35:22 +0000 |
commit | c4cb8b5d1460bbf080366817d26c08685490d541 (patch) | |
tree | 2752c52fb640323f99ac85fae9c126df72840eca /xmlsecurity/qa | |
parent | b1f91c0a04dd751d4f6cb8352bcbaa16c9388285 (diff) |
xmlsecurity PDF verify: avoid seeking before the start of the stream
Happened when the doc was smaller than 1024 bytes.
Change-Id: Ie5eea5905a09722e7958495d26e6c78ee234d3ba
Reviewed-on: https://gerrit.libreoffice.org/31500
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'xmlsecurity/qa')
-rw-r--r-- | xmlsecurity/qa/unit/pdfsigning/data/small.pdf | bin | 0 -> 834 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/small.pdf b/xmlsecurity/qa/unit/pdfsigning/data/small.pdf Binary files differnew file mode 100644 index 000000000000..60675454f9d3 --- /dev/null +++ b/xmlsecurity/qa/unit/pdfsigning/data/small.pdf diff --git a/xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx b/xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx index 6e5e476532ee..fae2a71d38f7 100644 --- a/xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx +++ b/xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx @@ -394,6 +394,8 @@ void PDFSigningTest::testTokenize() OUStringLiteral("name-bracket.pdf"), // %%EOF at the end wasn't followed by a newline. OUStringLiteral("noeol.pdf"), + // File that's intentionally smaller than 1024 bytes. + OUStringLiteral("small.pdf"), }; for (const auto& rName : aNames) |