fix invalid list node accesses, spotted by Benjamin Berg, bug #475158.

2007-09-09 18:22:28  Tim Janik  <timj@gtk.org>

        * 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
This commit is contained in:
18:22:28 Tim Janik 2007-09-09 16:24:34 +00:00 committed by Tim Janik
parent cc7e7db612
commit 57e8bdcb54
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-09-09 18:22:28 Tim Janik <timj@gtk.org>
* 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 <kris@gtk.org>
Reverted r16699:

View File

@ -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;
}
}