summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--filter/source/graphicfilter/ieps/ieps.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/filter/source/graphicfilter/ieps/ieps.cxx b/filter/source/graphicfilter/ieps/ieps.cxx
index 27ccf4bac5db..65414afe6a82 100644
--- a/filter/source/graphicfilter/ieps/ieps.cxx
+++ b/filter/source/graphicfilter/ieps/ieps.cxx
@@ -97,10 +97,10 @@ static long ImplGetNumber(sal_uInt8* &rBuf, sal_uInt32& nSecurityCount)
nSecurityCount = 1; // error parsing the bounding box values
else if ( bValid )
{
- const bool bFail = o3tl::checked_multiply(nRetValue, 10L, nRetValue);
+ const bool bFail = o3tl::checked_multiply<long>(nRetValue, 10, nRetValue) ||
+ o3tl::checked_add<long>(nRetValue, *rBuf - '0', nRetValue);
if (bFail)
return 0;
- nRetValue += *rBuf - '0';
}
break;
}