Apache OpenOffice (AOO) Bugzilla – Issue 100132
WW8: certain list crashes on import
Last modified: 2013-08-07 14:43:11 UTC
opening a particular, confidential .doc file crashes both OOO310_m4 and DEV300_m41
testcase sent to mru; crashreports with both tested versions submitted.
report ids : rp837vc and rsf37vc
MRU->OD / HBRINKM: the document crashes during import. Crash report lists something like: /so/ws/OOO310/src.m4/sal/osl/unx/signal.c:485 SignalHandlerFunction /so/ws/OOO310/src.m4/sal/osl/unx/signal.c:857 SvxNumberFormat::SvxNumberFormat(SvxNumberFormat const&) /so/ws/OOO310/ooo/svx/source/items/numitem.cxx:209 SwNumFmt::SwNumFmt(SwNumFmt const&) /so/ws/OOO310/ooo/sw/source/core/doc/number.cxx:210 WW8ListManager::GetNumRuleForActivation(unsigned short, unsigned char, _STL::vector >&, SwTxtNode*) /so/ws/OOO310/ooo/sw/source/filter/ww8/ww8par3.cxx:1507 SwWW8ImplReader::RegisterNumFmtOnTxtNode(unsigned short, unsigned char, bool) /so/ws/OOO310/ooo/sw/source/filter/ww8/ww8par3.cxx:1787 SwWW8ImplReader::RegisterNumFmt(unsigned short, unsigned char) /so/ws/OOO310/ooo/sw/source/filter/ww8/ww8par3.cxx:1889 SwWW8ImplReader::Read_LFOPosition(unsigned short, unsigned char const*, short) /so/ws/OOO310/ooo/sw/source/filter/ww8/ww8par3.cxx:2044 SwWW8ImplReader::ImportSprm(unsigned char const*, unsigned short) /so/ws/OOO310/ooo/sw/source/filter/ww8/ww8par6.cxx:6119 SwWW8ImplReader::ReadTextAttr(long&, bool&)
Created attachment 60896 [details] Very short document without confidential data
defect cause found: <SwNumberFormat> instance for list level 5 is directly accessed in <SwNumRule> instance, but for this list level no <SwNumberFormat> instance exists. Fix for issue 25545 in cws hb12, integrated into DEV300m38 causes this crash. solution: Instead of calling method <SwNumRule::GetNumFmt(..)> call method <SwNumRule::Get(..)>. This method provides a default <SwNumberFormat> instance, if for the given list level none exists. taking over this issue
fix in progress in cws sw31bf08
small change: fix will be made in cws fwk105 - I have hijacked this cws from CD ;-)
fixed in cws fwk105 - changed file: /sw/source/filter/ww8/ww8par3.cxx, rev. 269401
OD->MRU: Checked in internal installation set of cws fwk105 - please verify.
Verified in CWS fwk105.
Checked fix in OOO310m7.