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>
This commit is contained in:
@@ -371,7 +371,7 @@ SignatureStreamHelper DocumentSignatureHelper::OpenSignatureStream(
|
|||||||
sal_Int64 nSize = 0;
|
sal_Int64 nSize = 0;
|
||||||
uno::Reference<beans::XPropertySet> xPropertySet(xInputStream, uno::UNO_QUERY);
|
uno::Reference<beans::XPropertySet> xPropertySet(xInputStream, uno::UNO_QUERY);
|
||||||
xPropertySet->getPropertyValue(u"Size"_ustr) >>= nSize;
|
xPropertySet->getPropertyValue(u"Size"_ustr) >>= nSize;
|
||||||
if (nSize >= 0 || nSize < SAL_MAX_INT32)
|
if (nSize >= 0 && nSize < SAL_MAX_INT32)
|
||||||
{
|
{
|
||||||
uno::Sequence<sal_Int8> aData;
|
uno::Sequence<sal_Int8> aData;
|
||||||
xInputStream->readBytes(aData, nSize);
|
xInputStream->readBytes(aData, nSize);
|
||||||
|
Reference in New Issue
Block a user