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

New commits:
commit 563d06701f5af0a6ea6be69ce4835c2d6c03878d
Author:     Caolán McNamara <[email protected]>
AuthorDate: Tue Dec 30 14:33:15 2025 +0000
Commit:     Xisco Fauli <[email protected]>
CommitDate: Fri Jan 2 19:31:50 2026 +0100

    ofz: Integer-overflow
    
    Change-Id: Ib24dd4cbb3baefe466c08f60515382a2078f70a1
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196334
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <[email protected]>
    (cherry picked from commit 2e577c6f9759c50ff082a431c39d0b00ac9c4c05)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196364
    Reviewed-by: Xisco Fauli <[email protected]>

diff --git a/vcl/source/gdi/metaact.cxx b/vcl/source/gdi/metaact.cxx
index bde9ea3ce695..d5cee4f5f302 100644
--- a/vcl/source/gdi/metaact.cxx
+++ b/vcl/source/gdi/metaact.cxx
@@ -1211,6 +1211,8 @@ MetaGradientAction::MetaGradientAction( const 
tools::Rectangle& rRect, Gradient
 
 void MetaGradientAction::Execute( OutputDevice* pOut )
 {
+    if (!AllowRect(pOut->LogicToPixel(maRect)))
+        return;
     pOut->DrawGradient( maRect, maGradient );
 }
 

Reply via email to