sc/source/filter/xml/XMLExportIterator.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 2819bdf9a9abfd31ca33b504183cf141cc52a8c9
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Thu Oct 5 14:27:45 2023 +0100
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Fri Oct 6 09:26:08 2023 +0200

    ubsan error seen export to ods
    
    sc/source/filter/xml/XMLExportIterator.cxx:722:30: runtime error: load of 
value 5, which is not a valid value for type 'bool'
    
    Change-Id: I3cf4b6f0a4036a764e976cac6e1b91e298948e13
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157612
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>
    (cherry picked from commit 77de4babe762e831f818cfc53ba4223575a981bf)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157616

diff --git a/sc/source/filter/xml/XMLExportIterator.cxx 
b/sc/source/filter/xml/XMLExportIterator.cxx
index 6d8c408f19ec..bff7e8498642 100644
--- a/sc/source/filter/xml/XMLExportIterator.cxx
+++ b/sc/source/filter/xml/XMLExportIterator.cxx
@@ -712,7 +712,7 @@ bool ScMyNotEmptyCellsIterator::GetNext(ScMyCell& aCell, 
ScFormatRangeStyles* pC
             pDetectiveOp->SetCellData( aCell );
 
         HasAnnotation( aCell );
-        bool bIsAutoStyle;
+        bool bIsAutoStyle(false);
         // Ranges before the previous cell are not needed by 
ExportFormatRanges anymore and can be removed
         SCROW nRemoveBeforeRow = aLastAddress.Row();
         aCell.nStyleIndex = 
pCellStyles->GetStyleNameIndex(aCell.maCellAddress.Tab(),

Reply via email to