[Commits] [SCM] claws branch, master, updated. 3.17.0-11-gbf1a86d

ticho at claws-mail.org ticho at claws-mail.org
Wed Aug 22 15:01:17 CEST 2018


The branch, master has been updated
       via  bf1a86dad0d53887db2b4bcb4f5a9dbd1651f607 (commit)
      from  fe0f62b1449558adcccacfa83a3cca96735f5599 (commit)

Summary of changes:
 src/common/pkcs5_pbkdf2.c |    2 ++
 1 file changed, 2 insertions(+)


- Log -----------------------------------------------------------------
commit bf1a86dad0d53887db2b4bcb4f5a9dbd1651f607
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Wed Aug 22 15:00:58 2018 +0200

    Add null pointer checks to pkcs5_pbkdf2().

diff --git a/src/common/pkcs5_pbkdf2.c b/src/common/pkcs5_pbkdf2.c
index 5abbf01..1475a33 100644
--- a/src/common/pkcs5_pbkdf2.c
+++ b/src/common/pkcs5_pbkdf2.c
@@ -93,6 +93,8 @@ pkcs5_pbkdf2(const gchar *pass, size_t pass_len, const guchar *salt,
 	guint count;
 	size_t r;
 
+	if (pass == NULL || salt == NULL || key == NULL)
+		return -1;
 	if (rounds < 1 || key_len == 0)
 		return -1;
 	if (salt_len == 0 || salt_len > SIZE_MAX - 4)

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list