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

New commits:
commit 2e577c6f9759c50ff082a431c39d0b00ac9c4c05
Author:     Caolán McNamara <[email protected]>
AuthorDate: Tue Dec 30 14:33:15 2025 +0000
Commit:     Caolán McNamara <[email protected]>
CommitDate: Wed Dec 31 12:24:09 2025 +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]>

diff --git a/vcl/source/gdi/metaact.cxx b/vcl/source/gdi/metaact.cxx
index a4ccdb5fc266..e697789f35f8 100644
--- a/vcl/source/gdi/metaact.cxx
+++ b/vcl/source/gdi/metaact.cxx
@@ -1212,6 +1212,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