Matthew Barnes 5ea85e
diff -up evolution-data-server-2.21.2/libedataserverui/e-passwords.c.base64 evolution-data-server-2.21.2/libedataserverui/e-passwords.c
Matthew Barnes 5ea85e
--- evolution-data-server-2.21.2/libedataserverui/e-passwords.c.base64	2007-11-08 19:59:38.000000000 -0500
Matthew Barnes 5ea85e
+++ evolution-data-server-2.21.2/libedataserverui/e-passwords.c	2007-11-15 13:39:13.000000000 -0500
Matthew Barnes 5ea85e
@@ -214,7 +214,7 @@ ep_password_decode (const gchar *encoded
Matthew Barnes 5ea85e
 	 * to the decoded data to make it a nul-terminated string. */
Matthew Barnes 5ea85e
 
Matthew Barnes 5ea85e
 	gchar *password;
Matthew Barnes 5ea85e
-	gsize length;
Matthew Barnes 5ea85e
+	gsize length = 0;
Matthew Barnes 5ea85e
 
Matthew Barnes 5ea85e
 	password = (gchar *) g_base64_decode (encoded_password, &length);
Matthew Barnes 5ea85e
 	password = g_realloc (password, length + 1);
Matthew Barnes 5ea85e
diff -up evolution-data-server-2.21.2/servers/exchange/lib/e2k-autoconfig.c.base64 evolution-data-server-2.21.2/servers/exchange/lib/e2k-autoconfig.c
Matthew Barnes 5ea85e
--- evolution-data-server-2.21.2/servers/exchange/lib/e2k-autoconfig.c.base64	2007-10-23 05:57:29.000000000 -0400
Matthew Barnes 5ea85e
+++ evolution-data-server-2.21.2/servers/exchange/lib/e2k-autoconfig.c	2007-11-15 13:39:13.000000000 -0500
Matthew Barnes 5ea85e
@@ -306,8 +306,6 @@ get_ctx_auth_handler (SoupMessage *msg, 
Matthew Barnes 5ea85e
 	E2kAutoconfig *ac = user_data;
Matthew Barnes 5ea85e
 	const GSList *headers;
Matthew Barnes 5ea85e
 	const char *challenge_hdr;
Matthew Barnes 5ea85e
-	guchar *challenge;
Matthew Barnes 5ea85e
-	gsize length;
Matthew Barnes 5ea85e
 
Matthew Barnes 5ea85e
 	ac->saw_ntlm = ac->saw_basic = FALSE;
Matthew Barnes 5ea85e
 	headers = soup_message_get_header_list (msg->response_headers,
Matthew Barnes 5ea85e
@@ -322,6 +320,9 @@ get_ctx_auth_handler (SoupMessage *msg, 
Matthew Barnes 5ea85e
 
Matthew Barnes 5ea85e
 		if (!strncmp (challenge_hdr, "NTLM ", 5) &&
Matthew Barnes 5ea85e
 		    (!ac->w2k_domain || !ac->nt_domain)) {
Matthew Barnes 5ea85e
+			guchar *challenge;
Matthew Barnes 5ea85e
+			gsize length = 0;
Matthew Barnes 5ea85e
+
Matthew Barnes 5ea85e
 			challenge = g_base64_decode (challenge_hdr + 5, &length);
Matthew Barnes 5ea85e
 			if (!ac->nt_domain)
Matthew Barnes 5ea85e
 				ac->nt_domain_defaulted = TRUE;
Matthew Barnes 5ea85e
diff -up evolution-data-server-2.21.2/servers/exchange/lib/e2k-result.c.base64 evolution-data-server-2.21.2/servers/exchange/lib/e2k-result.c
Matthew Barnes 5ea85e
--- evolution-data-server-2.21.2/servers/exchange/lib/e2k-result.c.base64	2007-10-23 05:57:29.000000000 -0400
Matthew Barnes 5ea85e
+++ evolution-data-server-2.21.2/servers/exchange/lib/e2k-result.c	2007-11-15 13:39:13.000000000 -0500
Matthew Barnes 5ea85e
@@ -45,7 +45,7 @@ prop_get_binary_array (E2kResult *result
Matthew Barnes 5ea85e
 		byte_array = g_byte_array_new ();
Matthew Barnes 5ea85e
 		if (node->xmlChildrenNode && node->xmlChildrenNode->content) {
Matthew Barnes 5ea85e
 			guchar *data;
Matthew Barnes 5ea85e
-			gsize length;
Matthew Barnes 5ea85e
+			gsize length = 0;
Matthew Barnes 5ea85e
 
Matthew Barnes 5ea85e
 			data = g_base64_decode (
Matthew Barnes 5ea85e
 				node->xmlChildrenNode->content, &length);
Matthew Barnes 5ea85e
@@ -84,7 +84,7 @@ prop_get_binary (E2kResult *result, cons
Matthew Barnes 5ea85e
 	byte_array = g_byte_array_new ();
Matthew Barnes 5ea85e
 	if (node->xmlChildrenNode && node->xmlChildrenNode->content) {
Matthew Barnes 5ea85e
 		guchar *data;
Matthew Barnes 5ea85e
-		gsize length;
Matthew Barnes 5ea85e
+		gsize length = 0;
Matthew Barnes 5ea85e
 
Matthew Barnes 5ea85e
 		data = g_base64_decode (
Matthew Barnes 5ea85e
 			node->xmlChildrenNode->content, &length);
Matthew Barnes 5ea85e
diff -up evolution-data-server-2.21.2/addressbook/tests/ebook/test-photo.c.base64 evolution-data-server-2.21.2/addressbook/tests/ebook/test-photo.c
Matthew Barnes 5ea85e
--- evolution-data-server-2.21.2/addressbook/tests/ebook/test-photo.c.base64	2007-10-23 05:57:35.000000000 -0400
Matthew Barnes 5ea85e
+++ evolution-data-server-2.21.2/addressbook/tests/ebook/test-photo.c	2007-11-15 13:39:13.000000000 -0500
Matthew Barnes 5ea85e
@@ -28,15 +28,19 @@ main (int argc, char **argv)
Matthew Barnes 5ea85e
 {
Matthew Barnes 5ea85e
 	EContact *contact;
Matthew Barnes 5ea85e
 	EContactPhoto *photo, *new_photo;
Matthew Barnes 5ea85e
+	guchar *data;
Matthew Barnes 5ea85e
+	gsize length = 0;
Matthew Barnes 5ea85e
 
Matthew Barnes 5ea85e
 	g_type_init ();
Matthew Barnes 5ea85e
 
Matthew Barnes 5ea85e
 	contact = e_contact_new ();
Matthew Barnes 5ea85e
+	data = g_base64_decode (photo_data, &length);
Matthew Barnes 5ea85e
 
Matthew Barnes 5ea85e
 	photo = g_new (EContactPhoto, 1);
Matthew Barnes 5ea85e
 	photo->type = E_CONTACT_PHOTO_TYPE_INLINED;
Matthew Barnes 5ea85e
 	photo->data.inlined.mime_type = NULL;
Matthew Barnes 5ea85e
-	photo->data.inlined.data = g_base64_decode (photo_data, &photo->data.inlined.length);
Matthew Barnes 5ea85e
+	photo->data.inlined.data = data;
Matthew Barnes 5ea85e
+	photo->data.inlined.length = length;
Matthew Barnes 5ea85e
 
Matthew Barnes 5ea85e
 	/* set the photo */
Matthew Barnes 5ea85e
 	e_contact_set (contact, E_CONTACT_PHOTO, photo);
Matthew Barnes 5ea85e
diff -up evolution-data-server-2.21.2/addressbook/libebook/e-vcard.c.base64 evolution-data-server-2.21.2/addressbook/libebook/e-vcard.c
Matthew Barnes 5ea85e
--- evolution-data-server-2.21.2/addressbook/libebook/e-vcard.c.base64	2007-10-23 05:57:37.000000000 -0400
Matthew Barnes 5ea85e
+++ evolution-data-server-2.21.2/addressbook/libebook/e-vcard.c	2007-11-15 13:39:13.000000000 -0500
Matthew Barnes 5ea85e
@@ -1780,7 +1780,7 @@ e_vcard_attribute_get_values_decoded (EV
Matthew Barnes 5ea85e
 		case EVC_ENCODING_BASE64:
Matthew Barnes 5ea85e
 			for (l = attr->values; l; l = l->next) {
Matthew Barnes 5ea85e
 				guchar *decoded;
Matthew Barnes 5ea85e
-				gsize len;
Matthew Barnes 5ea85e
+				gsize len = 0;
Matthew Barnes 5ea85e
 
Matthew Barnes 5ea85e
 				decoded = g_base64_decode (l->data, &len;;
Matthew Barnes 5ea85e
 				attr->decoded_values = g_list_prepend (attr->decoded_values, g_string_new_len (decoded, len));
Matthew Barnes 5ea85e
diff -up evolution-data-server-2.21.2/camel/camel-sasl.c.base64 evolution-data-server-2.21.2/camel/camel-sasl.c
Matthew Barnes 5ea85e
--- evolution-data-server-2.21.2/camel/camel-sasl.c.base64	2007-10-23 05:57:18.000000000 -0400
Matthew Barnes 5ea85e
+++ evolution-data-server-2.21.2/camel/camel-sasl.c	2007-11-15 13:39:30.000000000 -0500
Matthew Barnes 5ea85e
@@ -134,9 +134,9 @@ camel_sasl_challenge_base64 (CamelSasl *
Matthew Barnes 5ea85e
 	
Matthew Barnes 5ea85e
 	g_return_val_if_fail (CAMEL_IS_SASL (sasl), NULL);
Matthew Barnes 5ea85e
 	
Matthew Barnes 5ea85e
-	if (token) {
Matthew Barnes 5ea85e
+	if (token && *token) {
Matthew Barnes 5ea85e
 		guchar *data;
Matthew Barnes 5ea85e
-		gsize length;
Matthew Barnes 5ea85e
+		gsize length = 0;
Matthew Barnes 5ea85e
 
Matthew Barnes 5ea85e
 		data = g_base64_decode (token, &length);
Matthew Barnes 5ea85e
 		token_binary = g_byte_array_new ();
Matthew Barnes 5ea85e
diff -up evolution-data-server-2.21.2/camel/camel-mime-utils.c.base64 evolution-data-server-2.21.2/camel/camel-mime-utils.c
Matthew Barnes 5ea85e
--- evolution-data-server-2.21.2/camel/camel-mime-utils.c.base64	2007-11-09 13:13:12.000000000 -0500
Matthew Barnes 5ea85e
+++ evolution-data-server-2.21.2/camel/camel-mime-utils.c	2007-11-15 13:39:13.000000000 -0500
Matthew Barnes 5ea85e
@@ -192,7 +192,7 @@ size_t
Matthew Barnes 5ea85e
 camel_base64_decode_simple (char *data, size_t len)
Matthew Barnes 5ea85e
 {
Matthew Barnes 5ea85e
 	guchar *out_data;
Matthew Barnes 5ea85e
-	gsize out_len;
Matthew Barnes 5ea85e
+	gsize out_len = 0;
Matthew Barnes 5ea85e
 
Matthew Barnes 5ea85e
 	g_return_val_if_fail (data != NULL, 0);
Matthew Barnes 5ea85e
 	g_return_val_if_fail (strlen (data) > 1, 0);
Matthew Barnes 5ea85e
diff -up evolution-data-server-2.21.2/camel/providers/groupwise/camel-groupwise-folder.c.base64 evolution-data-server-2.21.2/camel/providers/groupwise/camel-groupwise-folder.c
Matthew Barnes 5ea85e
--- evolution-data-server-2.21.2/camel/providers/groupwise/camel-groupwise-folder.c.base64	2007-10-23 05:56:59.000000000 -0400
Matthew Barnes 5ea85e
+++ evolution-data-server-2.21.2/camel/providers/groupwise/camel-groupwise-folder.c	2007-11-15 13:39:13.000000000 -0500
Matthew Barnes 5ea85e
@@ -1684,7 +1684,7 @@ groupwise_folder_item_to_msg( CamelFolde
Matthew Barnes 5ea85e
 			EGwItemAttachment *attach = (EGwItemAttachment *)al->data;
Matthew Barnes 5ea85e
 			if (!g_ascii_strcasecmp (attach->name, "Mime.822")) {
Matthew Barnes 5ea85e
 				if (attach->size > MAX_ATTACHMENT_SIZE) {
Matthew Barnes 5ea85e
-					int len_iter = 0, t_len , offset = 0, t_offset = 0;
Matthew Barnes 5ea85e
+					int t_len , offset = 0, t_offset = 0;
Matthew Barnes 5ea85e
 					char *t_attach = NULL;
Matthew Barnes 5ea85e
 					GString *gstr = g_string_new (NULL);
Matthew Barnes 5ea85e
 					
Matthew Barnes 5ea85e
@@ -1694,6 +1694,7 @@ groupwise_folder_item_to_msg( CamelFolde
Matthew Barnes 5ea85e
 								attach->id, t_offset, MAX_ATTACHMENT_SIZE, 
Matthew Barnes 5ea85e
 								(const char **)&t_attach, &t_len, &offset);
Matthew Barnes 5ea85e
 						if (status == E_GW_CONNECTION_STATUS_OK) {
Matthew Barnes 5ea85e
+							gsize len_iter = 0;
Matthew Barnes 5ea85e
 							char *temp = NULL;
Matthew Barnes 5ea85e
 	
Matthew Barnes 5ea85e
 							temp = g_base64_decode(t_attach, &len_iter);
Matthew Barnes 5ea85e
@@ -1831,7 +1832,7 @@ groupwise_folder_item_to_msg( CamelFolde
Matthew Barnes 5ea85e
 								attach->id, t_offset, MAX_ATTACHMENT_SIZE, 
Matthew Barnes 5ea85e
 								(const char **)&t_attach, &t_len, &offset);
Matthew Barnes 5ea85e
 						if (status == E_GW_CONNECTION_STATUS_OK) {
Matthew Barnes 5ea85e
-							int len_iter = 0;
Matthew Barnes 5ea85e
+							gsize len_iter = 0;
Matthew Barnes 5ea85e
 							char *temp = NULL;
Matthew Barnes 5ea85e
 	
Matthew Barnes 5ea85e
 							temp = g_base64_decode(t_attach, &len_iter);