vcl/source/gdi/metaact.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit fe9af4ccc03431d8f2d7e53ebef59f0b7586f716
Author:     Caolán McNamara <[email protected]>
AuthorDate: Sat Dec 27 16:49:49 2025 +0000
Commit:     Xisco Fauli <[email protected]>
CommitDate: Mon Dec 29 21:14:50 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
    Signed-off-by: Xisco Fauli <[email protected]>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196287

diff --git a/vcl/source/gdi/metaact.cxx b/vcl/source/gdi/metaact.cxx
index 76f0aa463194..bde9ea3ce695 100644
--- a/vcl/source/gdi/metaact.cxx
+++ b/vcl/source/gdi/metaact.cxx
@@ -422,6 +422,9 @@ MetaChordAction::MetaChordAction( const tools::Rectangle& 
rRect,
 
 void MetaChordAction::Execute( OutputDevice* pOut )
 {
+    if (!AllowRect(pOut->LogicToPixel(maRect)))
+        return;
+
     pOut->DrawChord( maRect, maStartPt, maEndPt );
 }
 

Reply via email to