[evolution-ews/gnome-3-4] Bug 678321 - Bug in usage of signed/unsigned crashes downloading of GAL (cherry picked from commit 8



commit 10e6f47e4e3812ac1cae95c2b4d78b770606baed
Author: derolf <rolf danielrolf com>
Date:   Thu Jun 14 11:35:39 2012 +0300

    Bug 678321 - Bug in usage of signed/unsigned crashes downloading of GAL
    (cherry picked from commit 80c84255f1a212529b0eeccd8831aee64873ef5e)

 src/addressbook/ews-oab-decoder.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/addressbook/ews-oab-decoder.c b/src/addressbook/ews-oab-decoder.c
index b656ece..089d9dc 100644
--- a/src/addressbook/ews-oab-decoder.c
+++ b/src/addressbook/ews-oab-decoder.c
@@ -345,15 +345,14 @@ ews_oab_read_uint16 (GInputStream *is,
                      GCancellable *cancellable,
                      GError **error)
 {
-	gchar *str = g_malloc0 (2);
+	guchar str[2];
 	guint16 ret = 0;
 
 	g_input_stream_read (is, str, 2, cancellable, error);
 	if (!*error)
 		ret = EndGetI16 (str);
 
-	g_free (str);
-	return ret;
+	return ret;	
 }
 
 static gint



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