To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=111768
                 Issue #|111768
                 Summary|Control characters are not counted in signalIMDeleteSu
                        |rrounding causing IndexOutOfBoundsException
               Component|Word processor
                 Version|DEV300m77
                Platform|Unknown
                     URL|
              OS/Version|Linux
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|code
             Assigned to|writerneedsconfirm
             Reported by|kstribley





------- Additional comments from [email protected] Sat May 22 10:10:09 
+0000 2010 -------
Using the ibus-kmfl input method (available from packages.sil.org for Ubuntu)
Writer can be crashed by typing a sequence which causes a delete of a control
character to be triggered.

The input method thinks that the control character can be deleted, so it sends
the delete surrounding signal, but
GtkSalFrame::IMHandler::signalIMDeleteSurrounding uses an
XAccessibleEditableText object to perform the delete, which has had the control
character (e.g. ZWSP U+200B) removed. It therefore tries to delete with an out
of bounds index causing the com::sun::star::lang::IndexOutOfBoundsException,
which is uncaught and so takes down OOo.

The exception can be fixed by checking the indexes passed in by the input
method. However, this alone will cause an extra delete mid-line, confusing the
user and ibus-kmfl. The XAccessibleEditableText returned in Calc, Draw and
Impress does include the control character, so there is no problem there. For
consistency, it would therefore make sense for XAccessibleEditableText to
include the control characters in SwAccessiblePortionData::Special so that the
Input Method is not confused.

To demonstrate the bug I used the kmfl file available at:
http://www.thanlwinsoft.org/cgi-bin/hgwebdir.cgi/ekaya/raw-file/e0f671bca9d4/ekaya/kmfl/myWin.kmn
and placed it in the ~/.kmfl directory.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to