sc/source/filter/html/htmlpars.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 85c40af4e9d4c679f66e7f7e004c018dd28994ee
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Tue Mar 19 08:46:45 2024 +0000
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Wed Mar 20 09:21:16 2024 +0100

    null deref in initial sc html fuzzing
    
    Change-Id: I368db8fec4cfd9409197d17f2892153aca2ba502
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165019
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/sc/source/filter/html/htmlpars.cxx 
b/sc/source/filter/html/htmlpars.cxx
index 1e70163ddd82..c969fa11a205 100644
--- a/sc/source/filter/html/htmlpars.cxx
+++ b/sc/source/filter/html/htmlpars.cxx
@@ -916,7 +916,8 @@ void ScHTMLLayoutParser::CloseEntry( const HtmlImportInfo* 
pInfo )
     if ( bTabInTabCell )
     {   // From the stack in TableOff
         bTabInTabCell = false;
-        NewActEntry(maList.back().get()); // New free flying mxActEntry
+        SAL_WARN_IF(maList.empty(), "sc", "unexpected close entry without 
open");
+        NewActEntry(maList.empty() ? nullptr : maList.back().get()); // New 
free flying mxActEntry
         return ;
     }
     if (mxActEntry->nTab == 0)

Reply via email to