summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--ChangeLog.pre-2-105
-rw-r--r--ChangeLog.pre-2-65
-rw-r--r--ChangeLog.pre-2-85
-rw-r--r--gdk/x11/gdkselection-x11.c10
5 files changed, 28 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 95e7005615..af9a19f041 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-11-26 Matthias Clasen <mclasen@redhat.com>
+
+ * gdk/x11/gdkselection-x11.c (gdk_text_property_to_utf8_list_for_display):
+ Don't crash if Xlib fails to return UTF-8. (#159373, Kristian Høgsberg)
+
Thu Nov 25 14:32:35 2004 Manish Singh <yosh@gimp.org>
* gdk/abicheck.sh
diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index 95e7005615..af9a19f041 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -1,3 +1,8 @@
+2004-11-26 Matthias Clasen <mclasen@redhat.com>
+
+ * gdk/x11/gdkselection-x11.c (gdk_text_property_to_utf8_list_for_display):
+ Don't crash if Xlib fails to return UTF-8. (#159373, Kristian Høgsberg)
+
Thu Nov 25 14:32:35 2004 Manish Singh <yosh@gimp.org>
* gdk/abicheck.sh
diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6
index 95e7005615..af9a19f041 100644
--- a/ChangeLog.pre-2-6
+++ b/ChangeLog.pre-2-6
@@ -1,3 +1,8 @@
+2004-11-26 Matthias Clasen <mclasen@redhat.com>
+
+ * gdk/x11/gdkselection-x11.c (gdk_text_property_to_utf8_list_for_display):
+ Don't crash if Xlib fails to return UTF-8. (#159373, Kristian Høgsberg)
+
Thu Nov 25 14:32:35 2004 Manish Singh <yosh@gimp.org>
* gdk/abicheck.sh
diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8
index 95e7005615..af9a19f041 100644
--- a/ChangeLog.pre-2-8
+++ b/ChangeLog.pre-2-8
@@ -1,3 +1,8 @@
+2004-11-26 Matthias Clasen <mclasen@redhat.com>
+
+ * gdk/x11/gdkselection-x11.c (gdk_text_property_to_utf8_list_for_display):
+ Don't crash if Xlib fails to return UTF-8. (#159373, Kristian Høgsberg)
+
Thu Nov 25 14:32:35 2004 Manish Singh <yosh@gimp.org>
* gdk/abicheck.sh
diff --git a/gdk/x11/gdkselection-x11.c b/gdk/x11/gdkselection-x11.c
index 13aca15cea..06374c5cf6 100644
--- a/gdk/x11/gdkselection-x11.c
+++ b/gdk/x11/gdkselection-x11.c
@@ -643,14 +643,20 @@ gdk_text_property_to_utf8_list_for_display (GdkDisplay *display,
else
{
if (list)
- (*list)[count++] = g_strdup (local_list[i]);
+ {
+ if (g_utf8_validate (local_list[i], -1, NULL))
+ (*list)[count++] = g_strdup (local_list[i]);
+ else
+ g_warning ("Error converting selection");
+ }
}
}
if (local_count)
gdk_free_text_list (local_list);
- (*list)[count] = NULL;
+ if (list)
+ (*list)[count] = NULL;
return count;
}