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

New commits:
commit 0ef4ce9b93118d18b579ae27919e304b2a4a478c
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Sun Feb 19 16:19:04 2023 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Sun Feb 19 17:31:54 2023 +0000

    ofz#56123 Null-dereference
    
    Change-Id: Id1d8c157814564dc31a7b439354fd8662d19fc07
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147301
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/vcl/source/gdi/regionband.cxx b/vcl/source/gdi/regionband.cxx
index 5a8e3676e57e..7b48df7a0966 100644
--- a/vcl/source/gdi/regionband.cxx
+++ b/vcl/source/gdi/regionband.cxx
@@ -1186,6 +1186,8 @@ bool RegionBand::CheckConsistency() const
 
 tools::Rectangle RegionBand::GetBoundRect() const
 {
+    if (!mpFirstBand)
+        return tools::Rectangle();
 
     // get the boundaries of the first band
     tools::Long nYTop(mpFirstBand->mnYTop);

Reply via email to