[Libreoffice-commits] core.git: sw/source
Stephan Bergmann
sbergman at redhat.com
Wed Mar 14 10:56:14 UTC 2018
sw/source/core/layout/pagedesc.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit c71aff0473b50a5d777cb0b426445c219370b86e
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Wed Mar 14 11:53:37 2018 +0100
Missing intialization of SwPageDesc::m_pTextFormatColl
...in efcb9a7078e08a367816b825d14419ddf351ff3e "use sw::WriterMultiListener
instead of SwDepend in SwPageDesc", causing
> /sw/source/core/layout/pagedesc.cxx:198:74: runtime error: upcast of misaligned address 0xbebebebebebebebe for type 'SwTextFormatColl', which requires 8 byte alignment
> 0xbebebebebebebebe: note: pointer points here
> <memory cannot be printed>
> #0 0x2b06bea9116b in SwPageDesc::GetRegisterFormatColl() const /sw/source/core/layout/pagedesc.cxx:198:74
during e.g. CppunitTest_sw_odfimport of ASan+UBSan builds.
Change-Id: If50a920ca5dafdce6c1a3e2fbf540488685e641a
diff --git a/sw/source/core/layout/pagedesc.cxx b/sw/source/core/layout/pagedesc.cxx
index b1b1927f2418..b1348a7001cd 100644
--- a/sw/source/core/layout/pagedesc.cxx
+++ b/sw/source/core/layout/pagedesc.cxx
@@ -46,6 +46,7 @@ SwPageDesc::SwPageDesc(const OUString& rName, SwFrameFormat *pFormat, SwDoc *con
, m_FirstMaster( pDoc->GetAttrPool(), rName, pFormat )
, m_FirstLeft( pDoc->GetAttrPool(), rName, pFormat )
, m_aDepends(*this)
+ , m_pTextFormatColl(nullptr)
, m_pFollow( this )
, m_nRegHeight( 0 )
, m_nRegAscent( 0 )
More information about the Libreoffice-commits
mailing list