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

New commits:
commit 0668c717eb84635f68a9d641ab1d79a8c5143eb0
Author:     Caolán McNamara <[email protected]>
AuthorDate: Mon Dec 22 19:53:30 2025 +0000
Commit:     Caolán McNamara <[email protected]>
CommitDate: Tue Dec 23 00:33:09 2025 +0100

    ofz#455916431 silence Integer-overflow
    
    Change-Id: Ic84b9b9dc053fea1eac159ce60f5a3ed2c8f1e0a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196116
    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 f2d747c60627..c4f24cdfd1fb 100644
--- a/vcl/source/gdi/metaact.cxx
+++ b/vcl/source/gdi/metaact.cxx
@@ -243,7 +243,8 @@ static bool AllowPoint(const Point& rPoint)
 
 static bool AllowRect(const tools::Rectangle& rRect)
 {
-    return AllowPoint(rRect.TopLeft()) && AllowPoint(rRect.BottomRight());
+    return AllowPoint(rRect.TopLeft()) && AllowPoint(rRect.BottomRight()) &&
+           AllowDim(rRect.GetHeight()) && AllowDim(rRect.GetWidth());
 }
 
 void MetaRectAction::Execute( OutputDevice* pOut )

Reply via email to