From 2737df7a379792860e6746c591820b063a5a3020 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Tue, 18 Oct 2011 11:12:16 +0200 Subject: Fix invalid read on vCard drop --- addressbook/util/eab-book-util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'addressbook') diff --git a/addressbook/util/eab-book-util.c b/addressbook/util/eab-book-util.c index 9839e5174f..eff5fc1058 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 */ -- cgit v1.2.3