[Commits] [SCM] claws branch, master, updated. 3.18.0-157-gd256de076

wwp at claws-mail.org wwp at claws-mail.org
Sun Sep 26 16:55:57 CEST 2021


The branch, master has been updated
       via  d256de076b31e3213819a33a3612442939b10ba9 (commit)
      from  5b1a3ab9df6341785aab28584454b05be3ad7042 (commit)

Summary of changes:
 src/toolbar.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


- Log -----------------------------------------------------------------
commit d256de076b31e3213819a33a3612442939b10ba9
Author: wwp <subscript at free.fr>
Date:   Sun Sep 26 16:55:45 2021 +0200

    Fix CID 1491264: use after free.

diff --git a/src/toolbar.c b/src/toolbar.c
index d7f1b4103..4de56a8c4 100644
--- a/src/toolbar.c
+++ b/src/toolbar.c
@@ -2857,8 +2857,8 @@ do { \
 	while (entry_list != NULL) {
 		Entry *e = (Entry*) entry_list->data;
 
-		g_free(e);
 		entry_list = g_slist_remove(entry_list, e);
+		g_free(e);
 	}
 
 	/* match any bit flags */
@@ -2879,8 +2879,8 @@ do { \
 	while (entry_list != NULL) {
 		Entry *e = (Entry*) entry_list->data;
 
-		g_free(e);
 		entry_list = g_slist_remove(entry_list, e);
+		g_free(e);
 	}
 
 	g_slist_free(entry_list);

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list