[Commits] [SCM] claws branch, master, updated. 3.15.0-177-g84589f6

mones at claws-mail.org mones at claws-mail.org
Fri Nov 24 01:11:44 CET 2017


The branch, master has been updated
       via  84589f6e5c39b34633cf8985fcdab5845e381a69 (commit)
      from  b81ad835f10794501c11e3625c3a8a474443d342 (commit)

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


- Log -----------------------------------------------------------------
commit 84589f6e5c39b34633cf8985fcdab5845e381a69
Author: Olaf Hering <olaf at aepfle.de>
Date:   Wed Nov 22 18:03:19 2017 +0100

    Move pointer usage after pointer check
    
    In procmime_decode_content mimeinfo is dereferenced before cm_return_val_if_fail().

diff --git a/src/procmime.c b/src/procmime.c
index b07e3f5..44e546c 100644
--- a/src/procmime.c
+++ b/src/procmime.c
@@ -323,14 +323,14 @@ gboolean procmime_decode_content(MimeInfo *mimeinfo)
 	gint state = 0;
 	guint save = 0;
 
+	cm_return_val_if_fail(mimeinfo != NULL, FALSE);
+
 	EncodingType encoding = forced_encoding 
 				? forced_encoding
 				: mimeinfo->encoding_type;
 	gchar lastline[BUFFSIZE];
 	memset(lastline, 0, BUFFSIZE);
 
-	cm_return_val_if_fail(mimeinfo != NULL, FALSE);
-
 	if (prefs_common.respect_flowed_format &&
 	    mimeinfo->type == MIMETYPE_TEXT && 
 	    !strcasecmp(mimeinfo->subtype, "plain")) {

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list