summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@codefactory.se>2001-04-20 10:03:28 +0000
committerAnders Carlsson <andersca@src.gnome.org>2001-04-20 10:03:28 +0000
commit8d3c9f220c260bd09e03126f924fc6fb58e8c9c5 (patch)
tree25d43b6f0ef7bb2dae320f3765d3e51596e75de0
parent5ddbcc1b9efc2153d49547bc371f411c3c266a20 (diff)
downloadpango-8d3c9f220c260bd09e03126f924fc6fb58e8c9c5.tar.gz
Discard the parsed text if the input variable text is NULL. This fixes a
2001-04-20 Anders Carlsson <andersca@codefactory.se> * pango/pango-markup.c (pango_parse_markup): Discard the parsed text if the input variable text is NULL. This fixes a segfault.
-rw-r--r--ChangeLog5
-rw-r--r--ChangeLog.pre-1-05
-rw-r--r--ChangeLog.pre-1-105
-rw-r--r--ChangeLog.pre-1-25
-rw-r--r--ChangeLog.pre-1-45
-rw-r--r--ChangeLog.pre-1-65
-rw-r--r--ChangeLog.pre-1-85
-rw-r--r--pango/pango-markup.c7
8 files changed, 39 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 5e16b50f..156b0d58 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-04-20 Anders Carlsson <andersca@codefactory.se>
+
+ * pango/pango-markup.c (pango_parse_markup): Discard the parsed text if
+ the input variable text is NULL. This fixes a segfault.
+
Tue Apr 17 15:44:53 2001 Owen Taylor <otaylor@redhat.com>
* Release 0.15
diff --git a/ChangeLog.pre-1-0 b/ChangeLog.pre-1-0
index 5e16b50f..156b0d58 100644
--- a/ChangeLog.pre-1-0
+++ b/ChangeLog.pre-1-0
@@ -1,3 +1,8 @@
+2001-04-20 Anders Carlsson <andersca@codefactory.se>
+
+ * pango/pango-markup.c (pango_parse_markup): Discard the parsed text if
+ the input variable text is NULL. This fixes a segfault.
+
Tue Apr 17 15:44:53 2001 Owen Taylor <otaylor@redhat.com>
* Release 0.15
diff --git a/ChangeLog.pre-1-10 b/ChangeLog.pre-1-10
index 5e16b50f..156b0d58 100644
--- a/ChangeLog.pre-1-10
+++ b/ChangeLog.pre-1-10
@@ -1,3 +1,8 @@
+2001-04-20 Anders Carlsson <andersca@codefactory.se>
+
+ * pango/pango-markup.c (pango_parse_markup): Discard the parsed text if
+ the input variable text is NULL. This fixes a segfault.
+
Tue Apr 17 15:44:53 2001 Owen Taylor <otaylor@redhat.com>
* Release 0.15
diff --git a/ChangeLog.pre-1-2 b/ChangeLog.pre-1-2
index 5e16b50f..156b0d58 100644
--- a/ChangeLog.pre-1-2
+++ b/ChangeLog.pre-1-2
@@ -1,3 +1,8 @@
+2001-04-20 Anders Carlsson <andersca@codefactory.se>
+
+ * pango/pango-markup.c (pango_parse_markup): Discard the parsed text if
+ the input variable text is NULL. This fixes a segfault.
+
Tue Apr 17 15:44:53 2001 Owen Taylor <otaylor@redhat.com>
* Release 0.15
diff --git a/ChangeLog.pre-1-4 b/ChangeLog.pre-1-4
index 5e16b50f..156b0d58 100644
--- a/ChangeLog.pre-1-4
+++ b/ChangeLog.pre-1-4
@@ -1,3 +1,8 @@
+2001-04-20 Anders Carlsson <andersca@codefactory.se>
+
+ * pango/pango-markup.c (pango_parse_markup): Discard the parsed text if
+ the input variable text is NULL. This fixes a segfault.
+
Tue Apr 17 15:44:53 2001 Owen Taylor <otaylor@redhat.com>
* Release 0.15
diff --git a/ChangeLog.pre-1-6 b/ChangeLog.pre-1-6
index 5e16b50f..156b0d58 100644
--- a/ChangeLog.pre-1-6
+++ b/ChangeLog.pre-1-6
@@ -1,3 +1,8 @@
+2001-04-20 Anders Carlsson <andersca@codefactory.se>
+
+ * pango/pango-markup.c (pango_parse_markup): Discard the parsed text if
+ the input variable text is NULL. This fixes a segfault.
+
Tue Apr 17 15:44:53 2001 Owen Taylor <otaylor@redhat.com>
* Release 0.15
diff --git a/ChangeLog.pre-1-8 b/ChangeLog.pre-1-8
index 5e16b50f..156b0d58 100644
--- a/ChangeLog.pre-1-8
+++ b/ChangeLog.pre-1-8
@@ -1,3 +1,8 @@
+2001-04-20 Anders Carlsson <andersca@codefactory.se>
+
+ * pango/pango-markup.c (pango_parse_markup): Discard the parsed text if
+ the input variable text is NULL. This fixes a segfault.
+
Tue Apr 17 15:44:53 2001 Owen Taylor <otaylor@redhat.com>
* Release 0.15
diff --git a/pango/pango-markup.c b/pango/pango-markup.c
index b6cbe2e7..97fb421a 100644
--- a/pango/pango-markup.c
+++ b/pango/pango-markup.c
@@ -601,8 +601,7 @@ pango_parse_markup (const char *markup_text,
if (attr_list)
md->attr_list = pango_attr_list_new ();
- if (text)
- md->text = g_string_new ("");
+ md->text = g_string_new ("");
if (accel_char)
*accel_char = 0;
@@ -678,7 +677,9 @@ pango_parse_markup (const char *markup_text,
if (text)
*text = g_string_free (md->text, FALSE);
-
+ else
+ g_string_free (md->text, TRUE);
+
if (accel_char)
*accel_char = md->accel_char;