diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-03-14 11:53:37 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-03-14 11:53:37 +0100 |
commit | c71aff0473b50a5d777cb0b426445c219370b86e (patch) | |
tree | 62ad6c9a5c75526767100ae6281292c060db8bd3 /sw | |
parent | 9f16845d48a3f84871625b185bf88e43f69a4707 (diff) |
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
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/layout/pagedesc.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
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 ) |