aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Williams <peterw@src.gnome.org>2000-08-01 04:33:27 +0800
committerPeter Williams <peterw@src.gnome.org>2000-08-01 04:33:27 +0800
commit5ed94f2baf4759063e9f8c363547fa23b5bc29b4 (patch)
tree0cb94b7e7edee37025323c158af795928ddf25d5
parentbba29ab0f3e86fb0d07c992a31dae6ef8bf9bdbd (diff)
downloadgsoc2013-evolution-5ed94f2baf4759063e9f8c363547fa23b5bc29b4.tar
gsoc2013-evolution-5ed94f2baf4759063e9f8c363547fa23b5bc29b4.tar.gz
gsoc2013-evolution-5ed94f2baf4759063e9f8c363547fa23b5bc29b4.tar.bz2
gsoc2013-evolution-5ed94f2baf4759063e9f8c363547fa23b5bc29b4.tar.lz
gsoc2013-evolution-5ed94f2baf4759063e9f8c363547fa23b5bc29b4.tar.xz
gsoc2013-evolution-5ed94f2baf4759063e9f8c363547fa23b5bc29b4.tar.zst
gsoc2013-evolution-5ed94f2baf4759063e9f8c363547fa23b5bc29b4.zip
Buffer overrun fix in g_strfreev
svn path=/trunk/; revision=4431
-rw-r--r--camel/ChangeLog5
-rw-r--r--camel/providers/vee/camel-vee-folder.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 10d19491e0..67df5216d5 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,8 @@
+2000-07-31 Peter Williams <peterw@helixcode.com>
+
+ * providers/vee/camel-vee-folder.c (vee_search_by_expression): Add a NULL
+ to the matches pointer array so that g_strfreev knows where the end is.
+
2000-07-31 Jeffrey Stedfast <fejj@helixcode.com>
* providers/imap/camel-imap-utils.c (imap_translate_sexp): New
diff --git a/camel/providers/vee/camel-vee-folder.c b/camel/providers/vee/camel-vee-folder.c
index 8c9109db91..2dc11d966a 100644
--- a/camel/providers/vee/camel-vee-folder.c
+++ b/camel/providers/vee/camel-vee-folder.c
@@ -385,6 +385,7 @@ vee_search_by_expression(CamelFolder *folder, const char *expression, CamelExcep
char *uid = matches->pdata[i];
g_ptr_array_add(result, g_strdup_printf("%p:%s", f, uid));
}
+ g_ptr_array_add (matches, NULL);
g_strfreev((char **)matches->pdata);
g_ptr_array_free(matches, FALSE);
node = g_list_next(node);