[git] GCRYPT - branch, LIBGCRYPT-1-6-BRANCH, updated. libgcrypt-1.6.4-4-gdf3cfdb

by NIIBE Yutaka cvs at cvs.gnupg.org
Thu Oct 15 04:32:35 CEST 2015


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU crypto library".

The branch, LIBGCRYPT-1-6-BRANCH has been updated
       via  df3cfdb32c332b57822d54040fc911bcb0594acb (commit)
      from  d501cc4edd55d3953d7581b3f8ff0c348df31ef0 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit df3cfdb32c332b57822d54040fc911bcb0594acb
Author: NIIBE Yutaka <gniibe at fsij.org>
Date:   Thu Oct 15 11:28:54 2015 +0900

    Fix double free on error.
    
    * src/hmac256.c (_gcry_hmac256_finalize): Don't free HD.
    
    --
    
    (backport from master
     commit 1c6d2698a84e4bf82735287c1d64954bfc1a1982)

diff --git a/src/hmac256.c b/src/hmac256.c
index 94a26da..6b62ed3 100644
--- a/src/hmac256.c
+++ b/src/hmac256.c
@@ -426,10 +426,8 @@ _gcry_hmac256_finalize (hmac256_context_t hd, size_t *r_dlen)
 
       tmphd = _gcry_hmac256_new (NULL, 0);
       if (!tmphd)
-        {
-          free (hd);
-          return NULL;
-        }
+	return NULL;
+
       _gcry_hmac256_update (tmphd, hd->opad, 64);
       _gcry_hmac256_update (tmphd, hd->buf, 32);
       finalize (tmphd);

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

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


hooks/post-receive
-- 
The GNU crypto library
http://git.gnupg.org




More information about the Gnupg-commits mailing list