Kaydet (Commit) c110c93a authored tarafından Caolán McNamara's avatar Caolán McNamara

ofz#7359 Integer overflow

Change-Id: I9c857f7fb8fbfceb9e061fd0bc1f0b0b63b35524
Reviewed-on: https://gerrit.libreoffice.org/52401Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 40e23abe
......@@ -1482,7 +1482,8 @@ namespace emfio
else
{
Bitmap aBitmap;
tools::Rectangle aRect( Point( xDest, yDest ), Size( cxDest, cyDest ) );
tools::Rectangle aRect(xDest, yDest);
aRect.SaturatingSetSize(Size(cxDest, cyDest));
sal_uInt32 nSize = cbBmiSrc + cbBitsSrc + 14;
if ( nSize <= ( mnEndPos - mnStartPos ) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment