sc/source/filter/html/htmlpars.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit f2feac3d2ab19fdbcec85194579a88b3995ae335 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Tue Mar 19 08:46:45 2024 +0000 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Fri Mar 22 20:48:32 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> (cherry picked from commit 85c40af4e9d4c679f66e7f7e004c018dd28994ee) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165005 Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/sc/source/filter/html/htmlpars.cxx b/sc/source/filter/html/htmlpars.cxx index 525cebef10fa..8b50901f7050 100644 --- a/sc/source/filter/html/htmlpars.cxx +++ b/sc/source/filter/html/htmlpars.cxx @@ -908,7 +908,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)