diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-10-24 17:15:06 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-10-25 07:02:29 +0000 |
commit | c758ad4a8be7e35c9fba29fffc5cd0ef55d68ff4 (patch) | |
tree | 18f7117467de2005b717fd8597641cbd3065302f /xmlsecurity/source | |
parent | b5c65b53de6663e12a8192100d6e25494779c5c7 (diff) |
CppunitTest_xmlsecurity_pdfsigning: fix this on RHEL6
The pdfdocument problem is present only on 32bit.
The pdfsigning problem is present on RHEL6, but not on RHEL7, for some
reason NSS fails to parse the provided profile (generated by a bit newer
NSS). Just return early in that case, we want to test the PDF code
there, not NSS.
Change-Id: I1123865d4b2176676a8fdaf648222fda8ca0b923
Reviewed-on: https://gerrit.libreoffice.org/30229
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'xmlsecurity/source')
-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 f63fe2e4841d..947bacb78f13 100644 --- a/xmlsecurity/source/pdfio/pdfdocument.cxx +++ b/xmlsecurity/source/pdfio/pdfdocument.cxx @@ -775,7 +775,7 @@ size_t PDFDocument::FindStartXRef(SvStream& rStream) // Find the "startxref" token, somewhere near the end of the document. std::vector<char> aBuf(1024); rStream.Seek(STREAM_SEEK_TO_END); - rStream.SeekRel(-1 * aBuf.size()); + rStream.SeekRel(static_cast<sal_Int64>(-1) * aBuf.size()); size_t nBeforePeek = rStream.Tell(); size_t nSize = rStream.ReadBytes(aBuf.data(), aBuf.size()); rStream.Seek(nBeforePeek); |