vcl/source/gdi/metaact.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 802a0bea1e30255174071223fe4c802fecfe19d2
Author: Caolán McNamara <[email protected]>
AuthorDate: Fri Oct 17 20:42:54 2025 +0100
Commit: Caolán McNamara <[email protected]>
CommitDate: Sat Oct 18 22:42:15 2025 +0200
ofz#452391360 Integer-overflow
Change-Id: Iaebacc7e087e0907c9800255fded15108329135a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192593
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <[email protected]>
diff --git a/vcl/source/gdi/metaact.cxx b/vcl/source/gdi/metaact.cxx
index 570083705f4b..93717287fb40 100644
--- a/vcl/source/gdi/metaact.cxx
+++ b/vcl/source/gdi/metaact.cxx
@@ -491,6 +491,8 @@ MetaPolygonAction::MetaPolygonAction( tools::Polygon aPoly
) :
void MetaPolygonAction::Execute( OutputDevice* pOut )
{
+ if (!AllowRect(pOut->LogicToPixel(maPoly.GetBoundRect())))
+ return;
pOut->DrawPolygon( maPoly );
}