[Commits] [SCM] claws branch, master, updated. 3.18.0-102-gb24a66c40

wwp at claws-mail.org wwp at claws-mail.org
Sat Sep 11 14:21:07 CEST 2021


The branch, master has been updated
       via  b24a66c40a7902a9b485bb11d635270419e20a9f (commit)
      from  1f6055001e2161a2888612cb74ebc6294a6ed9e6 (commit)

Summary of changes:
 src/grouplistdialog.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit b24a66c40a7902a9b485bb11d635270419e20a9f
Author: wwp <subscript at free.fr>
Date:   Sat Sep 11 14:20:08 2021 +0200

    Fix CID 1491385: buffer overrun (if copying all non-0 chars of name to newname, we still
    need an extra room for a trailing 0).

diff --git a/src/grouplistdialog.c b/src/grouplistdialog.c
index 0ec451f83..2ed352291 100644
--- a/src/grouplistdialog.c
+++ b/src/grouplistdialog.c
@@ -378,7 +378,7 @@ static GtkCMCTreeNode *grouplist_create_branch(NewsGroupInfo *ginfo,
 
 static void grouplist_expand_upwards(GtkCMCTree *ctree, const gchar *name) {
 	const gchar *ptr;
-	gchar *newname=g_malloc0(strlen(name));
+	gchar *newname=g_malloc0(strlen(name) + 1);
 	GtkCMCTreeNode *node;
 
 	for (ptr=name; *ptr; ptr++) {

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list