From 57e8bdcb544526930c8fee8a8fec8ea2070db31b Mon Sep 17 00:00:00 2001 From: "18:22:28 Tim Janik" Date: Sun, 9 Sep 2007 16:24:34 +0000 Subject: [PATCH] fix invalid list node accesses, spotted by Benjamin Berg, bug #475158. 2007-09-09 18:22:28 Tim Janik * gdk/x11/gdkgeometry-x11.c (_gdk_window_process_expose): fix invalid list node accesses, spotted by Benjamin Berg, bug #475158. svn path=/trunk/; revision=18769 --- ChangeLog | 5 +++++ gdk/x11/gdkgeometry-x11.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index bb2d6d5691..defe6f2259 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-09-09 18:22:28 Tim Janik + + * gdk/x11/gdkgeometry-x11.c (_gdk_window_process_expose): fix invalid + list node accesses, spotted by Benjamin Berg, bug #475158. + 2007-09-09 Kristian Rietveld Reverted r16699: diff --git a/gdk/x11/gdkgeometry-x11.c b/gdk/x11/gdkgeometry-x11.c index 2b476cfb10..017acfdeff 100644 --- a/gdk/x11/gdkgeometry-x11.c +++ b/gdk/x11/gdkgeometry-x11.c @@ -1142,6 +1142,7 @@ _gdk_window_process_expose (GdkWindow *window, while (tmp_list) { GdkWindowQueueItem *item = tmp_list->data; + GList *next = tmp_list->next; if (item->serial - serial < 0x7FFFFFFF) { if (item->window == window) @@ -1173,7 +1174,7 @@ _gdk_window_process_expose (GdkWindow *window, queue_delete_link (display_x11->translate_queue, tmp_list); queue_item_free (item); } - tmp_list = tmp_list->next; + tmp_list = next; } }