Issue 30070

Summary: Saving a document in rtf-format crashes openoffice
Product: Writer Reporter: redhat4 <jimmy_christiansen>
Component: uiAssignee: AOO issues mailing list <issues>
Status: CLOSED FIXED QA Contact:
Severity: Trivial    
Priority: P3 CC: czeslaw.wolanski, gbpacheco, issues, mseidel
Version: OOo 1.1.1Keywords: crash, oooqa
Target Milestone: ---   
Hardware: PC   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
OpenOffice crash windows message
none
The file that caused the crash
none
Same problem; crash report attached
none
Saving same document in Word 2000 format also crashes; crash report attached. none

Description redhat4 2004-06-10 20:14:24 UTC
Saving a document in rtf-format crashes openoffice.
Comment 1 redhat4 2004-06-10 20:16:28 UTC
Created attachment 15820 [details]
OpenOffice crash windows message
Comment 2 redhat4 2004-06-10 20:17:51 UTC
Created attachment 15821 [details]
The file that caused the crash
Comment 3 michael.ruess 2004-06-11 11:38:58 UTC
MRU->FME: the document once seems to be generated by RTF import (it contains
Styles like RTF_num 2).  When opening the sxw, you get loads of the Assertion
"SwTextFormatted::BuildPortions: Bad text lenght in Info". Maybe this is the
reason for the crash in RTF export then.
Comment 4 frank.meies 2004-06-11 12:39:50 UTC
FME->TL: Seems like the API tries to insert a string with length STRING_LEN
during loading the document. This has to be restricted to STRING_LEN - 1.
Comment 5 frank.meies 2004-06-11 12:47:13 UTC
FME->TL: This is done in the SwXText::insertString() function. Note: The crash
during rtf export is only a side effect of this.
Comment 6 thomas.lange 2004-06-11 13:05:39 UTC
TL->SB: Please have a look if a string with length STRING_LEN should be invalid.

As FME said the problem occurs when SwXText::insertString() is successively
called until the paragraph text (which is represented by a string) is too long.

Please hand this one back to me after you've done your part because we may still
like/need to do sth. additionally in the mentioned function.

Thanks!
Comment 7 thomas.lange 2004-06-11 13:07:00 UTC
Target changed to OO 2.0.
Comment 8 thomas.lange 2004-06-16 12:56:54 UTC
TL->SB: Pleae ahve a look. Thanks!
Comment 9 Stephan Bergmann 2004-06-16 13:44:28 UTC
SB->TL:  As discussed offline, back to you.
Comment 10 Stephan Bergmann 2004-06-16 13:44:57 UTC
.
Comment 11 andreas.martens 2004-06-17 14:27:57 UTC
Because of a shortage of resources we have to retarget this issue to OOo later. 
Comment 12 yvesb 2005-10-31 05:08:06 UTC
Created attachment 31034 [details]
Same problem; crash report attached
Comment 13 yvesb 2005-10-31 05:11:02 UTC
Created attachment 31035 [details]
Saving same document in Word 2000 format also crashes; crash report attached.
Comment 14 aziem 2006-10-01 21:57:21 UTC
The document freezes OOo 2.0.4rc2 Linux.  (I'm just checking old bugs.)
Comment 15 thomas.lange 2010-04-08 13:08:22 UTC
tl->hbrinkm: Please take over. Thanks!
Comment 16 Marcus 2017-05-20 11:19:49 UTC
Reset assigne to the default "issues@openoffice.apache.org".
Comment 17 Czesław Wolański 2023-04-05 08:25:01 UTC
Checked on Windows:
the last version that crashes when saving a document in rtf-format
is OpenOffice.org 3.3.0

All later releases, including 4.1.14, save the file "janet bound.sxw"
as expected.
Comment 18 Matthias Seidel 2023-04-05 14:30:20 UTC
Setting as FIXED due to comment 17.

I could also save the file with AOO 4.1.14 as RTF and Word 2000 on Windows.