51a02b6c80
- Render the map directly from SVG (#1335158) - Fix memory leaks in tz.c - Fix an invalid memory access - Do not modify TZ in the process environment - Move all data files to /usr/share/libtimezonemap from .../libtimezonemap/ui - Add extra city data so all timezone offsets are clickable - Move Venezuela from -04:30 to -04:00 - Fix the conversion of points just west of 180 longitude - Remove the out-of-date Olson map data - Update the "backward" file - Improve the location selected when setting the timezone by name (#1322648) - Remove an extra line in the +10:00 layer - Move Chile back an hour
27 lines
820 B
Diff
27 lines
820 B
Diff
From 8b82b34623699afc5a20b083e68f2f428a8d4583 Mon Sep 17 00:00:00 2001
|
|
From: David Shea <dshea@redhat.com>
|
|
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
|
|
|