diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-12-01 13:41:37 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-12-01 16:26:13 +0000 |
commit | c623a9f846c713b19a0d58337af4f4354aeffa6e (patch) | |
tree | 7ffa181e27002acff3f8341a02aaaf29772f2281 /xmlsecurity/qa/unit | |
parent | 0b66adec8f3a3e03499d5a3cb1db7008a391e61e (diff) |
xmlsecurity PDF verify: handle boolean type as dictionary value
This caused not finding the length of a stream -> could not actually
verify signature.
Change-Id: I696b6da49525eb53f7575c27f619d2116be51f1d
Reviewed-on: https://gerrit.libreoffice.org/31490
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'xmlsecurity/qa/unit')
-rw-r--r-- | xmlsecurity/qa/unit/pdfsigning/data/dict-bool.pdf | bin | 0 -> 145552 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/dict-bool.pdf b/xmlsecurity/qa/unit/pdfsigning/data/dict-bool.pdf Binary files differnew file mode 100644 index 000000000000..cd87f71ecf95 --- /dev/null +++ b/xmlsecurity/qa/unit/pdfsigning/data/dict-bool.pdf diff --git a/xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx b/xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx index c10752b07ee2..1ecbb22ed3dc 100644 --- a/xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx +++ b/xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx @@ -357,6 +357,8 @@ void PDFSigningTest::testGood() { // We failed to determine if this is good or bad. OUStringLiteral("good-non-detached.pdf"), + // Boolean value for dictionary key caused read error. + OUStringLiteral("dict-bool.pdf"), }; for (const auto& rName : aNames) |