[evolution-data-server] Bug 752370 - Hangs on vCard with 2 consecutive commas in the parameters list



commit 1440e58ddb0353aab08fc5fc6fcfc883b5a3b4c9
Author: Alex Shtyrov <alex shtyrov collabora co uk>
Date:   Wed Jul 15 18:34:11 2015 +0200

    Bug 752370 - Hangs on vCard with 2 consecutive commas in the parameters list

 addressbook/libebook-contacts/e-vcard.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/addressbook/libebook-contacts/e-vcard.c b/addressbook/libebook-contacts/e-vcard.c
index e13ee2d..e5c611b 100644
--- a/addressbook/libebook-contacts/e-vcard.c
+++ b/addressbook/libebook-contacts/e-vcard.c
@@ -505,6 +505,9 @@ read_attribute_params (EVCardAttribute *attr,
                                                param = NULL;
                                                if (!colon)
                                                        lp = g_utf8_next_char (lp);
+                                       } else {
+                                               g_string_append_unichar (str, g_utf8_get_char (lp));
+                                               lp = g_utf8_next_char (lp);
                                        }
                                }
 


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