vcl/source/gdi/metaact.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 2df61f1ea0cf85adf4c134ff98348e348e8c3d9a
Author: Caolán McNamara <[email protected]>
AuthorDate: Wed Feb 15 09:07:42 2023 +0000
Commit: Caolán McNamara <[email protected]>
CommitDate: Wed Feb 15 10:51:54 2023 +0000
ofz#55981 Integer-overflow
Change-Id: Id854f455f684c3eb11351da63dc173c1be8677bc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147044
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 a5510225dc32..1c7c320518ab 100644
--- a/vcl/source/gdi/metaact.cxx
+++ b/vcl/source/gdi/metaact.cxx
@@ -1445,6 +1445,9 @@
MetaISectRegionClipRegionAction::MetaISectRegionClipRegionAction( vcl::Region aR
void MetaISectRegionClipRegionAction::Execute( OutputDevice* pOut )
{
+ if (!AllowRect(pOut->LogicToPixel(maRegion.GetBoundRect())))
+ return;
+
pOut->IntersectClipRegion( maRegion );
}