aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/util
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-10-18 17:12:16 +0800
committerMilan Crha <mcrha@redhat.com>2011-10-18 17:12:16 +0800
commita6830da67d0af30d44774879df1a9b06bf23641d (patch)
tree13419512f1d0be060c52368f43a4c5ef3559c733 /addressbook/util
parent57da5a8ddd81e1729a60d8b816e3992553be64dc (diff)
downloadgsoc2013-evolution-a6830da67d0af30d44774879df1a9b06bf23641d.tar
gsoc2013-evolution-a6830da67d0af30d44774879df1a9b06bf23641d.tar.gz
gsoc2013-evolution-a6830da67d0af30d44774879df1a9b06bf23641d.tar.bz2
gsoc2013-evolution-a6830da67d0af30d44774879df1a9b06bf23641d.tar.lz
gsoc2013-evolution-a6830da67d0af30d44774879df1a9b06bf23641d.tar.xz
gsoc2013-evolution-a6830da67d0af30d44774879df1a9b06bf23641d.tar.zst
gsoc2013-evolution-a6830da67d0af30d44774879df1a9b06bf23641d.zip
Fix invalid read on vCard drop
Diffstat (limited to 'addressbook/util')
-rw-r--r--addressbook/util/eab-book-util.c3
1 files changed, 2 insertions, 1 deletions
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 */