diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-02-10 11:52:54 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-02-10 11:52:54 -0500 |
commit | 1aeef5865ab83304b815484045fc1ded038608d3 (patch) | |
tree | fb71302bcb59f6c90160faf938f58f2333b9c233 | |
parent | a5338500f5af46f41200fa71ac07f91e89d7e02d (diff) | |
download | pango-1aeef5865ab83304b815484045fc1ded038608d3.tar.gz |
Avoid uninitialized memory
pango_default_break() was not clearing the is_char_break field,
causing unwanted breaks in the middle of clusters, occasionally.
Patch by Gene Hightower,
https://bugzilla.gnome.org/show_bug.cgi?id=744118
-rw-r--r-- | pango/break.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pango/break.c b/pango/break.c index 1f4aafd7..5b2e4895 100644 --- a/pango/break.c +++ b/pango/break.c @@ -917,6 +917,7 @@ pango_default_break (const gchar *text, g_assert (prev_break_type != G_UNICODE_BREAK_SPACE); + attrs[i].is_char_break = FALSE; attrs[i].is_line_break = FALSE; attrs[i].is_mandatory_break = FALSE; |