diff options
author | Milan Crha <mcrha@redhat.com> | 2011-10-18 17:12:16 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-10-19 05:11:23 +0800 |
commit | 2737df7a379792860e6746c591820b063a5a3020 (patch) | |
tree | 3afdd19073edf43466fcc33db17d3655bde7cb02 /addressbook | |
parent | 2a49eb956e51dc64e6249878e539971bc3aefa94 (diff) | |
download | gsoc2013-evolution-2737df7a379792860e6746c591820b063a5a3020.tar gsoc2013-evolution-2737df7a379792860e6746c591820b063a5a3020.tar.gz gsoc2013-evolution-2737df7a379792860e6746c591820b063a5a3020.tar.bz2 gsoc2013-evolution-2737df7a379792860e6746c591820b063a5a3020.tar.lz gsoc2013-evolution-2737df7a379792860e6746c591820b063a5a3020.tar.xz gsoc2013-evolution-2737df7a379792860e6746c591820b063a5a3020.tar.zst gsoc2013-evolution-2737df7a379792860e6746c591820b063a5a3020.zip |
Fix invalid read on vCard drop
Diffstat (limited to 'addressbook')
-rw-r--r-- | 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 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 */ |