vcl/source/gdi/metaact.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 5933acda684dc9edb3e59657aa7d5525d9c38af8
Author: Caolán McNamara <[email protected]>
AuthorDate: Sat Dec 27 16:49:49 2025 +0000
Commit: Caolán McNamara <[email protected]>
CommitDate: Sat Dec 27 20:19:55 2025 +0100
ofz#471785270 Integer-overflow
Change-Id: Ie10df4f65155d788b4e89c4114b534404cfdad82
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196249
Reviewed-by: Caolán McNamara <[email protected]>
Tested-by: Jenkins
diff --git a/vcl/source/gdi/metaact.cxx b/vcl/source/gdi/metaact.cxx
index c4f24cdfd1fb..cd45abf76cb0 100644
--- a/vcl/source/gdi/metaact.cxx
+++ b/vcl/source/gdi/metaact.cxx
@@ -420,6 +420,9 @@ MetaChordAction::MetaChordAction( const tools::Rectangle&
rRect,
void MetaChordAction::Execute( OutputDevice* pOut )
{
+ if (!AllowRect(pOut->LogicToPixel(maRect)))
+ return;
+
pOut->DrawChord( maRect, maStartPt, maEndPt );
}