pango/pango-1.17.4-empty-string-corruption.patch

15 lines
284 B
Diff

--- pango/break.c
+++ pango/break.c
@@ -558,7 +558,10 @@
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);