GNOME Bugzilla – Bug 596614
Pango application receives SIGSEGV on pasting text with U+202E
Last modified: 2009-11-17 21:23:17 UTC
Pango application (tested with gedit) receives SIGSEGV when pasting text with U+202E in some languages. Test cases: - http://a.dt.in.th/public/course.html or http://pastie.org/633416.txt for Thai characters - http://a.dt.in.th/public/course-other.html or http://pastie.org/633415.txt for Korea characters (Note that copying only Japanese characters doesn't crash gedit) This problem, as far as I know only found in Thai and Korea. Japanese and Chinese characters works. Errors found so far gedit: malloc.c:4628: _int_malloc: Assertion `(unsigned long)(size) >= (unsigned long)(nb)' failed. Program received signal SIGABRT, Aborted. 0x003ab424 in __kernel_vsyscall () (For Thai characters test case) Program received signal SIGSEGV, Segmentation fault. 0x00ca227e in pango_glyph_item_iter_next_cluster () from /usr/lib/libpango-1.0.so.0 (For Korea character test case) Program received signal SIGSEGV, Segmentation fault. 0x005b65c7 in g_slice_alloc () from /lib/libglib-2.0.so.0 (For Korea character test case) Distro: Fedora 12 Rawhide, fully upgraded as of 09/09/28 Pango: 1.26.0-1.fc12 Gedit: 2.28.0-1.fc12
glib version is 1.2.10-33.fc12
*** Bug 602210 has been marked as a duplicate of this bug. ***
Tracked down the bug. Working on a fix.
commit 4ccabeffc20f899163bf610356871afb197e9bf8 Author: Behdad Esfahbod <behdad@behdad.org> Date: Tue Nov 17 16:20:42 2009 -0500 Bug 596614 - Pango application receives SIGSEGV on pasting text with U+202E Fixed all modules to reverse glyphs if run is rtl. Except for Hangul module. Fixed pango_shape() to detect that, warn, and reverse.