vcl/source/gdi/metaact.cxx | 5 +++++ 1 file changed, 5 insertions(+) New commits: commit 60dbf73c1f42f09d52dc8ef9fcf7d902cf2b1dd4 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Sun Dec 4 11:54:33 2022 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Sun Dec 4 15:44:11 2022 +0000
ofz#53842 Timeout Change-Id: I24e5bf30c93bfe2ebb27c2b01232dbc8a42964a3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143630 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> 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; }