[Commits] [SCM] claws branch, master, updated. 3.15.0-87-g4742144

ticho at claws-mail.org ticho at claws-mail.org
Mon Jul 10 18:39:38 CEST 2017


The branch, master has been updated
       via  47421445ccb941a1ec3b227a7aea485aec909acb (commit)
      from  fb0b04b4f0a0c024e7f4021f329a3847705ba752 (commit)

Summary of changes:
 src/plugins/managesieve/sieve_prefs.c |    2 ++
 1 file changed, 2 insertions(+)


- Log -----------------------------------------------------------------
commit 47421445ccb941a1ec3b227a7aea485aec909acb
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Mon Jul 10 18:36:37 2017 +0200

    Fix uninitialized values in sieve privacy prefs parsing.
    
    This happens if username and/or password fields are empty,
    so sscanf() doesn't get to write into our enc_userid and
    enc_passwd buffers.

diff --git a/src/plugins/managesieve/sieve_prefs.c b/src/plugins/managesieve/sieve_prefs.c
index 06fa510..fb4a360 100644
--- a/src/plugins/managesieve/sieve_prefs.c
+++ b/src/plugins/managesieve/sieve_prefs.c
@@ -503,6 +503,8 @@ struct SieveAccountConfig *sieve_prefs_account_get_config(
 	if (confstr == NULL)
 		return config;
 
+	enc_userid[0] = '\0';
+	enc_passwd[0] = '\0';
 #if defined(G_OS_WIN32) || defined(__OpenBSD__)
 	sscanf(confstr, "%c%c %255s %c%hu %hhu %hhu %hhu %255s %255s",
 #else

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list