summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-12-02 10:54:46 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-12-03 13:57:54 +0000
commitbbe530a238e68d7338c51532f0f7991ccae8ba17 (patch)
tree8dc53b5e11a15e9d991852793e41e210f76f89f3
parent4bd0292094a5fae34dce4b37bb629cb1be6195cb (diff)
ofz#53868 Integer-overflow
Change-Id: I5d6da712d5db9e0b8b19fca2101626a2a7e2907e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143569 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--vcl/source/gdi/metaact.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/source/gdi/metaact.cxx b/vcl/source/gdi/metaact.cxx
index c072a27a7864..f83529ac5c3f 100644
--- a/vcl/source/gdi/metaact.cxx
+++ b/vcl/source/gdi/metaact.cxx
@@ -1184,6 +1184,9 @@ MetaMaskScalePartAction::MetaMaskScalePartAction( const Point& rDstPt, const Siz
void MetaMaskScalePartAction::Execute( OutputDevice* pOut )
{
+ if (!AllowRect(tools::Rectangle(maDstPt, maDstSz)))
+ return;
+
pOut->DrawMask( maDstPt, maDstSz, maSrcPt, maSrcSz, maBmp, maColor, MetaActionType::MASKSCALE );
}