diff options
author | Aron Budea <aron.budea@collabora.com> | 2024-11-26 18:29:44 +1030 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2024-11-28 10:04:10 +0100 |
commit | 5bee44346ebd2ae6714078a13b0085a16e5603b2 (patch) | |
tree | 39420869b52cd501920da42915c016007ef5af98 /xmlsecurity/source | |
parent | cbe229ec219e56ce1bb5dd9598f9052a98504249 (diff) |
Operator should be logical AND instead of OR
Change-Id: Ife1870da9979e974fa9dc11ca7dff87c8cfe66bc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177310
Tested-by: Jenkins
Reviewed-by: Aron Budea <aron.budea@collabora.com>
(cherry picked from commit 2af9fcddba57632e4a13797dcd5894f4cfeb51a7)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177462
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Diffstat (limited to 'xmlsecurity/source')
-rw-r--r-- | xmlsecurity/source/helper/documentsignaturehelper.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmlsecurity/source/helper/documentsignaturehelper.cxx b/xmlsecurity/source/helper/documentsignaturehelper.cxx index 8e666b14ba6e..6fe3f8945a9f 100644 --- a/xmlsecurity/source/helper/documentsignaturehelper.cxx +++ b/xmlsecurity/source/helper/documentsignaturehelper.cxx @@ -377,7 +377,7 @@ SignatureStreamHelper DocumentSignatureHelper::OpenSignatureStream( sal_Int64 nSize = 0; uno::Reference<beans::XPropertySet> xPropertySet(xInputStream, uno::UNO_QUERY); xPropertySet->getPropertyValue("Size") >>= nSize; - if (nSize >= 0 || nSize < SAL_MAX_INT32) + if (nSize >= 0 && nSize < SAL_MAX_INT32) { uno::Sequence<sal_Int8> aData; xInputStream->readBytes(aData, nSize); |