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



commit 5900ffccccaf4ba743732745812491107f571a4e
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]