diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-04-04 17:12:03 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-04-05 00:24:06 +0200 |
commit | c110c93a283816a69be917d534b8ba321adf2133 (patch) | |
tree | 72335df82bece5a71bbafbf6b2ed000482c7b79c /emfio | |
parent | 40e23abecde809a6e7229fae912a392a9552c1fb (diff) |
ofz#7359 Integer overflow
Change-Id: I9c857f7fb8fbfceb9e061fd0bc1f0b0b63b35524
Reviewed-on: https://gerrit.libreoffice.org/52401
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'emfio')
-rw-r--r-- | emfio/source/reader/emfreader.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/emfio/source/reader/emfreader.cxx b/emfio/source/reader/emfreader.cxx index e1cf68d5669e..bc13659a2631 100644 --- a/emfio/source/reader/emfreader.cxx +++ b/emfio/source/reader/emfreader.cxx @@ -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 ) ) |