[Libreoffice-commits] core.git: Branch 'libreoffice-5-4' - sc/source
Stephan Bergmann
sbergman at redhat.com
Tue Jan 16 10:43:09 UTC 2018
sc/source/ui/navipi/navipi.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 545d417d714bee156b45f8117486ccf5433a7dd9
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Thu Jan 11 17:20:02 2018 +0100
Add back initialization of ScNavigatorSettings::maExpandedVec
...lost with 2ea92be9973e6892727eae37ae958863702b3658 "convert SC_CONVERT
constants to scoped enum". And indeed, e.g., opening the document from
<https://bugs.documentfoundation.org/show_bug.cgi?id=114932#c2> through steps 1
and 2 in a UBSan build reports a use of an uninitialized (bad-valued) bool in
ScNavigatorSettings::IsExpanded.
Change-Id: If0dfadc6bd8033e61e334f59b3028ab005a892cd
Reviewed-on: https://gerrit.libreoffice.org/47767
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
(cherry picked from commit fbec01b7af438fc7409c875e59be7483772b53a2)
Reviewed-on: https://gerrit.libreoffice.org/47787
Reviewed-by: Eike Rathke <erack at redhat.com>
diff --git a/sc/source/ui/navipi/navipi.cxx b/sc/source/ui/navipi/navipi.cxx
index 9b2819281c02..ba81eede2d3d 100644
--- a/sc/source/ui/navipi/navipi.cxx
+++ b/sc/source/ui/navipi/navipi.cxx
@@ -430,6 +430,7 @@ ScNavigatorSettings::ScNavigatorSettings()
: mnRootSelected(ScContentId::ROOT)
, mnChildSelected(SC_CONTENT_NOCHILD)
{
+ maExpandedVec.fill(false);
}
SFX_IMPL_CHILDWINDOWCONTEXT( ScNavigatorDialogWrapper, SID_NAVIGATOR )
More information about the Libreoffice-commits
mailing list