xmloff/source/text/XMLIndexTOCContext.cxx |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit e79be0eece29e045f3ce43eaa967475b18565817
Author:     Caolán McNamara <[email protected]>
AuthorDate: Mon Dec 22 09:39:42 2025 +0000
Commit:     Caolán McNamara <[email protected]>
CommitDate: Sat Dec 27 18:16:19 2025 +0100

    ofz#470644944 Null-dereference READ
    
    Change-Id: Ief869fc4237ca3052db84cac891079b7483d43e9
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196078
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <[email protected]>
    (cherry picked from commit d71aeeadc20198121eed46daf4d5b10089279be2)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196099
    Reviewed-by: Xisco Fauli <[email protected]>

diff --git a/xmloff/source/text/XMLIndexTOCContext.cxx 
b/xmloff/source/text/XMLIndexTOCContext.cxx
index 224f48c9589a..cf524f6b60ab 100644
--- a/xmloff/source/text/XMLIndexTOCContext.cxx
+++ b/xmloff/source/text/XMLIndexTOCContext.cxx
@@ -219,6 +219,13 @@ void XMLIndexTOCContext::startFastElement(
         }
     }
 
+    if (!xTOCPropertySet)
+    {
+        SAL_WARN("xmloff", "TOC Property Set unavailable");
+        bValid = false;
+        return;
+    }
+
     // finally, check for redlines that should start at
     // the section start node
     if( bValid )

Reply via email to