Issue 76258 - OO crashes while loading the document.
Summary: OO crashes while loading the document.
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: open-import (show other issues)
Version: OOo 2.2
Hardware: All All
: P2 Trivial (vote)
Target Milestone: ---
Assignee: eric.savary
QA Contact: issues@sw
URL:
Keywords: crash
Depends on:
Blocks: 72764
  Show dependency tree
 
Reported: 2007-04-11 13:40 UTC by darkcloud
Modified: 2013-08-07 14:42 UTC (History)
5 users (show)

See Also:
Issue Type: PATCH
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
OO 2.2 crashes while loading this file. (10.45 KB, text/plain)
2007-04-11 13:41 UTC, darkcloud
no flags Details
patchfile (794 bytes, text/plain)
2007-12-06 06:00 UTC, liuyu
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description darkcloud 2007-04-11 13:40:28 UTC
OO crashes while loading the document. see attachment

OO should not crash, but tell that the document is invalid. (if it really is).


Hint: this issue is related to this one:
http://www.openoffice.org/issues/show_bug.cgi?id=71239
Comment 1 darkcloud 2007-04-11 13:41:15 UTC
Created attachment 44347 [details]
OO 2.2 crashes while loading this file.
Comment 2 michael.ruess 2007-04-11 14:20:28 UTC
Reassigned to ES.
Comment 3 kpalagin 2007-04-12 18:09:05 UTC
Confirming with 2.2m8 on WinXP.
Upping priority, setting keyword.
Comment 4 eric.savary 2007-04-13 09:11:55 UTC
ES->AMA: Stack ID:971751. Reproduced als on Linux (m8) and Windows (m205). Same
crash with OOo 2.0 -> target 2.x.
Comment 5 liuyu 2007-12-06 06:00:28 UTC
Created attachment 50145 [details]
patchfile
Comment 6 kpalagin 2007-12-06 08:19:28 UTC
ch2000liuy,
I suggest setting issue type to patch so that Sun developers would easily see 
the patch. I also suggest making http://www.openoffice.org/issues/show_bug.cgi?
id=72764 dependant on this one.
Comment 7 liuyu 2007-12-06 08:31:13 UTC
liuyu->ama: I found the problem is the value of "nAbsWidth" is 0, when the 
"nAbsWidth" is used as a divisor. So I add a condition to the judgement ( " if( 
nAbsWidth < nWidth && nAbsWidth != 0 )"  ).
What do you think?
Comment 8 liuyu 2007-12-06 08:48:32 UTC
liuyu->kpalagin: Yes, you're right. Thank you.
Comment 9 andreas.martens 2007-12-06 12:00:31 UTC
ama->liuyu:
Yes, your fix will avoid the crashing when document will be loaded. Actually OS
fixed this in another CWS sw8u10bf02 without a bug document becuase of crash
reports we got.
I will integrate your patch into CWS sw8u10bf03 as well because I'm changing
some more files.
With your patch I crashed when I tried to save the document again. I will fix
those crashes in CWS sw8u10bf03 as well.

Thank you for your patch, you can regard this issue as fixed.
Comment 10 andreas.martens 2007-12-06 12:11:51 UTC
Fixed in CWS sw8u10bf03
xmltbli.cxx
Comment 11 andreas.martens 2007-12-14 12:19:44 UTC
Ready for QA.
Comment 12 eric.savary 2008-01-10 17:11:15 UTC
Verified in CWS sw8u10bf03
Comment 13 sgautier.ooo 2009-01-02 12:44:15 UTC
Verified in OOo 3.0 - closing - Sophie