GNOME Bugzilla – Bug 547303
pango_layout_get_cursor_pos crashes on certain text buffers
Last modified: 2008-08-11 18:17:17 UTC
If a \r\n is present in a buffer passed to a PangoLayout pango will abort the process with an assert not reached for some positions in the buffer. ** Pango:ERROR:(/tmp/buildd/pango1.0-1.20.5/pango/pango-layout.c:2147):pango_layout_line_get_char_direction: code should not be reached
Created attachment 116356 [details] Test case causing pango to crash in pango_layout_get_cursor_position Minimal code snippet that causes pango to go boom.
2008-08-11 Behdad Esfahbod <behdad@gnome.org> Bug 547303 – pango_layout_get_cursor_pos crashes on certain text buffers * pango/pango-layout.c (pango_layout_get_cursor_pos): Handle cursor position in the middle of a "\r\n" cluster.