[pango] Avoid uninitialized memory
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango] Avoid uninitialized memory
- Date: Tue, 10 Feb 2015 16:54:18 +0000 (UTC)
commit 1aeef5865ab83304b815484045fc1ded038608d3
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Feb 10 11:52:54 2015 -0500
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
pango/break.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/pango/break.c b/pango/break.c
index 1f4aafd..5b2e489 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]