From 560f0f10a137f98ed2204bf8e00f892333d2dae8 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 26 May 2024 12:39:51 +0100 Subject: ofz#69256 Integer-overflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I564635a52282ee632a0c028199ec86dd4bff99a8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168044 Reviewed-by: Caolán McNamara Tested-by: Jenkins --- vcl/source/gdi/metaact.cxx | 3 +++ 1 file changed, 3 insertions(+) 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 ); } -- cgit