summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2023-10-05 14:27:45 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2023-10-06 09:26:08 +0200
commit2819bdf9a9abfd31ca33b504183cf141cc52a8c9 (patch)
treec8d346fa4d658cf62f9fda27e3f569d089a072ef
parente181518492a69ec853e15813b362bf245ac2fad6 (diff)
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 <xiscofauli@libreoffice.org> (cherry picked from commit 77de4babe762e831f818cfc53ba4223575a981bf) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157616
-rw-r--r--sc/source/filter/xml/XMLExportIterator.cxx2
1 files changed, 1 insertions, 1 deletions
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(),