[Commits] [SCM] claws branch, master, updated. 3.17.0-179-ga44ea17

ticho at claws-mail.org ticho at claws-mail.org
Sat Nov 24 23:05:17 CET 2018


The branch, master has been updated
       via  a44ea1792e33e0554c721d50f3038c4e1e20ed81 (commit)
      from  ca73579c35c3918b41ed93f2f3eeee8951c9f173 (commit)

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


- Log -----------------------------------------------------------------
commit a44ea1792e33e0554c721d50f3038c4e1e20ed81
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Sat Nov 24 23:04:52 2018 +0100

    Finish buffer overflow fix attempted in e025cbc3b.

diff --git a/src/plugins/mailmbox/mailmbox.c b/src/plugins/mailmbox/mailmbox.c
index dda0070..1432f46 100644
--- a/src/plugins/mailmbox/mailmbox.c
+++ b/src/plugins/mailmbox/mailmbox.c
@@ -1263,7 +1263,7 @@ int claws_mailmbox_expunge_no_lock(struct claws_mailmbox_folder * folder)
     return MAILMBOX_NO_ERROR;
   }
 
-  snprintf(tmpfile, PATH_MAX, "%sXXXXXX", folder->mb_filename);
+  snprintf(tmpfile, sizeof(tmpfile), "%sXXXXXX", folder->mb_filename);
   dest_fd = g_mkstemp(tmpfile);
 
   if (dest_fd < 0) {

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list