Apache OpenOffice (AOO) Bugzilla – Issue 32227
OpenOffice should not hang when opening corrupted file
Last modified: 2016-03-12 21:11:31 UTC
I know it's a problem. But is it really unsolvable problem to make OOo a bit more proof to hanging opening corrupted files?
Created attachment 16820 [details] File corrupted due to bad floppy
Please remove the attachment, I shouldn't post it.
Somehow, an algorithm which catches such damaged RTF files and prevents a crash/loop.
Please, are You able to delete the attachment?
If I try to open attachment "corrupted.rtf" OpenOffice gives me error "Read-Error. File format error found at 168,262(row,col)." Microsoft Wordpad 5.0 seems to be able to open the corrupted file. I tried opening it by drag&drop from OO, since by default .rtf files are opened in different application. But... Version 1.9.65 crashes (sometimes closes without giving any information, sometimes notifies about an error) if I try to open a file which is created like this: - Create plain text file to desktop - Edit file to have two characters (I don't think the amount matters) "aa" in the content of the file. - Name file a.doc or any .doc name. I don't have any OO open (quickstarter can be open or not, doesn't matter), and I try to open the file on my desktop by double clicking it. OpenOffice closes and next time I start it, it askes if I want to send an error report, I sent one in hope it provides some extra information. OS: Windows 2000 + SP4, Finnish language version.
Even while this seems to appear only with corrupted files, I think the priority for this bug should be raised to 2, because it fits in the "- Crashes in basic functionality". And I really think this should be fixed before version 2.0 is released, because software that crashes doesn't give a good image of itself. And as tuharsky has pointed out, this can appear in normal, real life situations also.
Well, we can assume, that OOo would deal with many files that are uncorrectly named. M$O users (and OOo ones too) often don't recognize the filename extensions, and many old W3x programs and drives come with text files that have .doc extension. Some detection pre-import filter should take place that would test the header of opening file, and if the extension differs from assumed one, the OOo should notice user about bad format extension and ask for permission to change it. On export too.
*** Issue 106307 has been marked as a duplicate of this issue. ***
To grep the issues easier via "requirements" I put the issues currently lying on my owner to the owner "requirements".
The content of attachment 16820 [details] has been deleted