[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-289-ge2e7b25a2

wwp at claws-mail.org wwp at claws-mail.org
Mon Oct 4 09:05:27 CEST 2021


The branch, gtk3 has been updated
       via  e2e7b25a230d13cb0d7557e50de8ab5a5a802724 (commit)
      from  1cdefe8acb372cc3bc8626d5559d001ea3289d5b (commit)

Summary of changes:
 src/compose.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit e2e7b25a230d13cb0d7557e50de8ab5a5a802724
Author: wwp <subscript at free.fr>
Date:   Mon Oct 4 09:04:46 2021 +0200

    Fix (in a better way) CID 1492307: use after free.

diff --git a/src/compose.c b/src/compose.c
index e22b046a3..52c6dd742 100644
--- a/src/compose.c
+++ b/src/compose.c
@@ -2368,10 +2368,13 @@ Compose *compose_reedit(MsgInfo *msginfo, gboolean batch)
 	}
 	if (!account) {
 		account = cur_account;
+	}
+	if (!account) {
+		g_warning("can't select account");
 		if (manual_headers)
 			procheader_entries_free(manual_headers);
+		return NULL;
 	}
-	cm_return_val_if_fail(account != NULL, NULL);
 
 	compose = compose_create(account, msginfo->folder, COMPOSE_REEDIT, batch);
 

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list