Apache OpenOffice (AOO) Bugzilla – Issue 8166
Open Office crashes when a very long string is inserted into text field of" Line numbering"
Last modified: 2013-08-07 14:43:23 UTC
The text field of "Line Numbering" accepts long strings which has caused this failure. Steps to replicate bug 1. Go to menu option Tools -> Line Numbering 2. Check Show Numbering box 3. Leave other fields on the Line Numbering dialog box to default value, 4. Input a text string from a file which is about 1 Mb, in the text field. 5. Type a few lines of text to form a paragraph This appears to be a very important bug to fix. There should be some limitation in the length of the string accepted by the text field. The application should have some kind of failsafe mechanism for extreme cases like this one, where the user can make the program crash. An example of such a mechanism would be to limit the size of the string that can be handled by the program. It could pop up an error message when the user tries to input a string that it cannot handle safely and notify the user that the string that is being used is too long to be considered safe.
Sujit, thank you for using and supporting OOo. For future reference, please attach a test file to reproduce your problem. It helps us save time looking for a suitable test file that matches your criteria. In this case, it would advisable to first compress ( zip, bzip, gzip ) the file first because of the size. In summary, the term for these types of checks is called "bounds checking". It's a hot topic these days. Duplicated on Win NT 4.0 SP6a, OOo 643. OOo hangs when inserting large amounts of text into the text separator field of the Line Numbering dialog box.
Created attachment 3364 [details] Cut and paste this entire file into the text field of the dialog box
Reassigned to a starting contact point.
Reassigned to HI.
HI->FL: A case for user experience.
FL->OS: Please limit maximum string length of input field according to maximum of data type behind this field. Thank you!
Target milestone set.
OS->SB: There's an rtl::OUString longer than xub_StrLen converted into a UniString with an invalid length. String::EraseAllChars(unsigned short 0x000a) line 1152 VCL644MI! Edit::ImplGetValidString(class String const &) + 66 bytes VCL644MI! Edit::ImplInsertText(class String const &,class Selection const *) + 93 bytes VCL644MI! Edit::ReplaceSelected(class String const &) + 53 bytes VCL644MI! Edit::ImplPaste(class com::sun::star::uno::Reference<class com::sun::star::datatransfer::clipboard::XClipboard> &) + 491 bytes int,long) + 38 bytes USER32! 77d43a68()
Looking for best solution.
*** Issue 2056 has been marked as a duplicate of this issue. ***
*** Issue 9771 has been marked as a duplicate of this issue. ***
Fixed on SRX644 CWS rtlmath.
reopen to reassign
I said reopen ...
reassign to QA
restore status
Added myself on CC to close issue 9771 when this one will be closed.
verified
As mentioned on the qa dev list on March 5th I will close all resolved <wontfix/duplicate/worksforme/invalid> issues. Please see this posting for details.