[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-151-g7fbe24ea7
wwp at claws-mail.org
wwp at claws-mail.org
Sat Sep 11 14:20:58 CEST 2021
The branch, gtk3 has been updated
via 7fbe24ea7bdeb0dc51c0ce55a1e0692b29f068ac (commit)
from 2175e7fc9ebaebefe86216df8868def31bbe4339 (commit)
Summary of changes:
src/grouplistdialog.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
- Log -----------------------------------------------------------------
commit 7fbe24ea7bdeb0dc51c0ce55a1e0692b29f068ac
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 60b14e9ab..cb0521b2b 100644
--- a/src/grouplistdialog.c
+++ b/src/grouplistdialog.c
@@ -389,7 +389,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