summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-05-26 12:39:51 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-05-26 15:41:55 +0200
commit560f0f10a137f98ed2204bf8e00f892333d2dae8 (patch)
treeb701e55238ac10279aabb2e3c0ed59d68369cc6a
parentfda349ab8e834578fbefe9e9407d006eec47c7cd (diff)
ofz#69256 Integer-overflow
Change-Id: I564635a52282ee632a0c028199ec86dd4bff99a8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168044 Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com> Tested-by: Jenkins
-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 19ab84ff6c23..944a1e114128 100644
--- a/vcl/source/gdi/metaact.cxx
+++ b/vcl/source/gdi/metaact.cxx
@@ -372,6 +372,9 @@ MetaArcAction::MetaArcAction( const tools::Rectangle& rRect,
void MetaArcAction::Execute( OutputDevice* pOut )
{
+ if (!AllowRect(pOut->LogicToPixel(maRect)))
+ return;
+
pOut->DrawArc( maRect, maStartPt, maEndPt );
}