[evolution-patches] Memory Clobber Patch



Prevents caller from using freed memory.

-JP
-- 
JP Rosevear <jpr novell com>
Novell, Inc.
? libecal/patch.txt
? libecal/temp.patch
? libecal/temp2.patch
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/calendar/ChangeLog,v
retrieving revision 1.324.2.5
diff -u -p -r1.324.2.5 ChangeLog
--- ChangeLog	28 Sep 2004 15:57:45 -0000	1.324.2.5
+++ ChangeLog	4 Oct 2004 21:36:14 -0000
@@ -1,3 +1,10 @@
+2004-10-04  JP Rosevear  <jpr novell com>
+
+	Fixes #67513
+	
+	* libecal/e-cal.c (cal_objects_sent_cb): deep copy the user list
+	data
+
 2004-09-28  Rodrigo Moya <rodrigo novell com>
 
 	Fixes #66230
Index: libecal/e-cal.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/calendar/libecal/e-cal.c,v
retrieving revision 1.75.2.2
diff -u -p -r1.75.2.2 e-cal.c
--- libecal/e-cal.c	24 Sep 2004 14:24:03 -0000	1.75.2.2
+++ libecal/e-cal.c	4 Oct 2004 21:36:15 -0000
@@ -632,6 +632,7 @@ cal_objects_sent_cb (ECalListener *liste
 {
 	ECal *ecal = data;
 	ECalendarOp *op;
+	GList *l;
 
 	op = e_calendar_get_op (ecal);
 
@@ -645,6 +646,9 @@ cal_objects_sent_cb (ECalListener *liste
 	op->status = status;
 	op->list = g_list_copy (users);
 	op->string = g_strdup (object);
+
+	for (l = op->list; l; l = l->next)
+		l->data = g_strdup (l->data);
 
 	g_cond_signal (op->cond);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]