[evolution/gnome-3-2] Fix invalid read on vCard drop



commit b8f07af45d0a5082eb10c55576ed7277fa4f697a
Author: Milan Crha <mcrha redhat com>
Date:   Tue Oct 18 11:12:56 2011 +0200

    Fix invalid read on vCard drop

 addressbook/util/eab-book-util.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/addressbook/util/eab-book-util.c b/addressbook/util/eab-book-util.c
index 5c8d335..547632f 100644
--- a/addressbook/util/eab-book-util.c
+++ b/addressbook/util/eab-book-util.c
@@ -106,7 +106,8 @@ eab_contact_list_from_string (const gchar *str)
 
 			q += 9;
 			temp = q;
-			temp += strspn (temp, "\r\n\t ");
+			if (*temp)
+				temp += strspn (temp, "\r\n\t ");
 
 			if (*temp == '\0' || !g_ascii_strncasecmp (temp, "BEGIN:VCARD", 11))
 				break;  /* Found the outer END:VCARD */



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