aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2006-10-31 13:41:10 +0800
committermarcus <marcus@FreeBSD.org>2006-10-31 13:41:10 +0800
commit49b874907d5d999a3d5f8e02e04095b78a356aab (patch)
treef6ba7f1dcfea2ccb2d31b885c94ed75b0e3eca79
parenta5652284b32a3472ec84a96aee3b63eba70ab841 (diff)
downloadfreebsd-ports-gnome-49b874907d5d999a3d5f8e02e04095b78a356aab.tar.gz
freebsd-ports-gnome-49b874907d5d999a3d5f8e02e04095b78a356aab.tar.zst
freebsd-ports-gnome-49b874907d5d999a3d5f8e02e04095b78a356aab.zip
Fix two use-after-free problems that can trigger a crash when running
with malloc debugging enabled.
-rw-r--r--games/gnome-games/Makefile1
-rw-r--r--games/gnome-games/files/patch-aisleriot_cscmi.c22
2 files changed, 23 insertions, 0 deletions
diff --git a/games/gnome-games/Makefile b/games/gnome-games/Makefile
index 6c65030ec758..d4cce0a5562b 100644
--- a/games/gnome-games/Makefile
+++ b/games/gnome-games/Makefile
@@ -8,6 +8,7 @@
PORTNAME= gnome-games
PORTVERSION= 2.16.1
+PORTREVISION= 1
CATEGORIES= games gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}
diff --git a/games/gnome-games/files/patch-aisleriot_cscmi.c b/games/gnome-games/files/patch-aisleriot_cscmi.c
new file mode 100644
index 000000000000..49d5ee6c7231
--- /dev/null
+++ b/games/gnome-games/files/patch-aisleriot_cscmi.c
@@ -0,0 +1,22 @@
+--- aisleriot/cscmi.c.orig Wed Oct 18 17:51:31 2006
++++ aisleriot/cscmi.c Wed Oct 18 17:51:13 2006
+@@ -603,8 +603,8 @@ cscmi_drag_valid(int slot_id, GList *car
+ cscmi_catch_handler,
+ NULL);
+ retval = call_data->retval;
+- g_free (call_data);
+ scm_gc_unprotect_object (call_data->arg2);
++ g_free (call_data);
+
+ return SCM_NFALSEP(retval);
+ }
+@@ -698,8 +698,8 @@ cscmi_drop_valid(int start_slot, GList *
+ cscmi_catch_handler,
+ NULL);
+ retval = call_data->retval;
+- g_free (call_data);
+ scm_gc_unprotect_object (call_data->arg2);
++ g_free (call_data);
+
+ return SCM_NFALSEP(retval);
+ }