diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-12-04 11:54:33 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-12-04 15:44:11 +0000 |
commit | 60dbf73c1f42f09d52dc8ef9fcf7d902cf2b1dd4 (patch) | |
tree | b93043d8a819ce26caceb193704012c702486656 /vcl | |
parent | 00bf67a99dcdb1549401f0b656e872e5c9762dc5 (diff) |
ofz#53842 Timeout
Change-Id: I24e5bf30c93bfe2ebb27c2b01232dbc8a42964a3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143630
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/metaact.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/source/gdi/metaact.cxx b/vcl/source/gdi/metaact.cxx index f83529ac5c3f..db503cfd294d 100644 --- a/vcl/source/gdi/metaact.cxx +++ b/vcl/source/gdi/metaact.cxx @@ -746,6 +746,11 @@ static bool AllowRect(const tools::Rectangle& rRect) SAL_WARN("vcl", "skipping huge rect top: " << rRect.Top()); return false; } + if (rRect.Bottom() > 0x20000000 || rRect.Bottom() < -0x20000000) + { + SAL_WARN("vcl", "skipping huge rect bottom: " << rRect.Bottom()); + return false; + } } return true; } |