From 8b82b34623699afc5a20b083e68f2f428a8d4583 Mon Sep 17 00:00:00 2001 From: David Shea Date: Fri, 8 Apr 2016 11:52:47 -0400 Subject: [PATCH 05/24] Fix an invalid memory access When truncating the list for the distance-based location search, do not attempt to read the rest of the list after it has been freed. --- src/cc-timezone-map.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cc-timezone-map.c b/src/cc-timezone-map.c index f47c870..f0b061d 100644 --- a/src/cc-timezone-map.c +++ b/src/cc-timezone-map.c @@ -1037,6 +1037,7 @@ get_loc_for_xy (GtkWidget * widget, gint x, gint y) /* Cut the list off here */ node->prev->next = NULL; g_list_free(node); + break; } node = g_list_next(node); -- 2.5.5