Apache OpenOffice (AOO) Bugzilla – Issue 115774
crash in FR version when typing / as first character
Last modified: 2010-12-15 13:12:24 UTC
Steps to reproduce : - close all instance of OOo - open OOo-Writer 3.3.0 RC6 FR - type a slash ==> crash This crash has been first found in Calc. It is linked to autocorrection. No crash in en-US version. Discussed in FR qa-test mailing list : http://www.mail-archive.com/qa-test@fr.openoffice.org/msg11894.html in gdb I get this traceback: (gdb) run -writer Starting program: /opt/openoffice.org3/program/soffice.bin -writer [Thread debugging using libthread_db enabled] [New Thread 0x7fffeea75710 (LWP 8396)] [New Thread 0x7fffe3f19710 (LWP 8398)] [New Thread 0x7fffe3718710 (LWP 8399)] [New Thread 0x7fffe24eb710 (LWP 8400)] [New Thread 0x7fffdac70710 (LWP 8401)] [New Thread 0x7fffd7088710 (LWP 8405)] [New Thread 0x7fffd640e710 (LWP 8406)] [New Thread 0x7fffd5bfd710 (LWP 8407)] [Thread 0x7fffd5bfd710 (LWP 8407) exited] [Thread 0x7fffe3f19710 (LWP 8398) exited] [New Thread 0x7fffe3f19710 (LWP 8408)] [Thread 0x7fffe3f19710 (LWP 8408) exited] Program received signal SIGSEGV, Segmentation fault. 0x00007fffdd3a8017 in SvxAutoCorrect::FnAddNonBrkSpace(SvxAutoCorrDoc&, String const&, unsigned short, unsigned short, unsigned short) () from /opt/openoffice.org3/program/../basis-link/program/libeditenglx.so JBF
regression keyword set.
priority P2 set
Adding me to CC
SBA->OS: Please proceed, thx.
adjusting target to 3.3
Inserting a slash at the beginning of a French paragraph results in a search for characters at negative string positions. The proposed patch looks like that: diff -r 3f116e7d913d editeng/source/misc/svxacorr.cxx --- a/editeng/source/misc/svxacorr.cxx Tue Nov 23 10:41:33 2010 +0100 +++ b/editeng/source/misc/svxacorr.cxx Thu Nov 25 13:22:59 2010 +0100 @@ -701,7 +701,7 @@ bRunNext = true; } } - else if ( cChar == '/' ) + else if ( cChar == '/' && nEndPos > 1 && rTxt.Len() > nEndPos ) { // Remove the hardspace right before to avoid formatting URLs sal_Unicode cPrevChar = rTxt.GetChar( nEndPos - 1 ); reassigned to obo to apply in master
Fixed with changeset 272034:12b46f9bb0ec for OOO330_m17.
Verified in OOO330_m17.
closed.