evolution-data-server r8586 - branches/gnome-2-22/servers/groupwise trunk/servers/groupwise



Author: utx
Date: Wed Mar 26 15:32:28 2008
New Revision: 8586
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=8586&view=rev

Log:
Use correct type for g_base64_decode to fix stack corruption on x86_64 (#522389).


Modified:
   branches/gnome-2-22/servers/groupwise/ChangeLog
   branches/gnome-2-22/servers/groupwise/e-gw-connection.c
   trunk/servers/groupwise/ChangeLog
   trunk/servers/groupwise/e-gw-connection.c

Modified: branches/gnome-2-22/servers/groupwise/e-gw-connection.c
==============================================================================
--- branches/gnome-2-22/servers/groupwise/e-gw-connection.c	(original)
+++ branches/gnome-2-22/servers/groupwise/e-gw-connection.c	Wed Mar 26 15:32:28 2008
@@ -2645,7 +2645,7 @@
 	}
 
 	if (buffer && buf_length) {
-		int len = atoi (buf_length) ;
+		gsize len = atoi (buf_length) ;
 		*attachment = g_base64_decode (buffer,&len) ;
 		*attach_length = len ;
 	}

Modified: trunk/servers/groupwise/e-gw-connection.c
==============================================================================
--- trunk/servers/groupwise/e-gw-connection.c	(original)
+++ trunk/servers/groupwise/e-gw-connection.c	Wed Mar 26 15:32:28 2008
@@ -2694,7 +2694,7 @@
 	}
 
 	if (buffer && buf_length) {
-		int len = atoi (buf_length) ;
+		gsize len = atoi (buf_length) ;
 		*attachment = g_base64_decode (buffer,&len) ;
 		*attach_length = len ;
 	}



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