diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | pango/break.c | 5 |
2 files changed, 11 insertions, 1 deletions
@@ -1,3 +1,10 @@ +2007-07-31 Behdad Esfahbod <behdad@gnome.org> + + Bug 462137 – memory corruption in pango_default_break + + * pango/break.c (pango_default_break): Handle the case of + an empty string correctly. + 2007-07-30 Behdad Esfahbod <behdad@gnome.org> * === Released 1.17.5 === diff --git a/pango/break.c b/pango/break.c index 091d2541..2ab71efe 100644 --- a/pango/break.c +++ b/pango/break.c @@ -558,7 +558,10 @@ pango_default_break (const gchar *text, prev_jamo = NO_JAMO; if (length == 0 || *text == '\0') - next_wc = PARAGRAPH_SEPARATOR; + { + next_wc = PARAGRAPH_SEPARATOR; + almost_done = TRUE; + } else next_wc = g_utf8_get_char (next); |