After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 149050 - pango_layout_iter_next_char crashes with Hebrew text
pango_layout_iter_next_char crashes with Hebrew text
Status: RESOLVED DUPLICATE of bug 89541
Product: pango
Classification: Platform
Component: general
1.4.x
Other Linux
: Normal normal
: ---
Assigned To: pango-maint
pango-maint
Depends on:
Blocks:
 
 
Reported: 2004-08-02 06:02 UTC by Neil Hodgson
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Neil Hodgson 2004-08-02 06:02:03 UTC
Load a Hebrew string such as "ה" into a Pango layout and try to iterate by
char. It will crash on the first call to pango_layout_iter_next_char, failing an
assertion after calculating new_index which becomes negative.

// Code illustrates approach but is not actual problem 
// code and has not been run:
char *s="ה";   // \xd7\x94
pango_layout_set_text(layout, s, strlen(s));
PangoLayoutIter *iter = pango_layout_get_iter (layout);
while (pango_layout_iter_next_char (iter)) {

   This failed both with the version of Pango/GTK+ from Fedora Core 2 and with a
copy of pango_layout_iter_next_char extracted from the most recent Pango source
distribution.
Comment 1 Owen Taylor 2004-08-02 12:12:35 UTC
Duplicate of bug 89541, but if you came up with a reasonable patch for
just this crash I'd apply it.
Comment 2 Owen Taylor 2004-08-10 17:19:14 UTC
Not distinguishable from the general problems in bug 89541

*** This bug has been marked as a duplicate of 89541 ***