start shipping gnu-iconv (userland-extra)
[unleashed-userland.git] / components / library / libgcrypt / patches / 06-CVE-2017-7526-5.patch
blobfa93090138abbdf7c2536796170182e640e008de
1 From 312101e1f266314b4391fcdbe11c03de5c147e38 Mon Sep 17 00:00:00 2001
2 From: NIIBE Yutaka <gniibe@fsij.org>
3 Date: Thu, 29 Jun 2017 12:40:19 +0900
4 Subject: [PATCH] rsa: More fix.
6 * cipher/rsa.c (secret): Free R.
8 --
10 Fixes-commit: a9f612def801c8145d551d995475e5d51a4c988c
11 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
12 ---
13 cipher/rsa.c | 1 +
14 1 file changed, 1 insertion(+)
16 Index: libgcrypt11-1.5.3/cipher/rsa.c
17 ===================================================================
18 --- libgcrypt11-1.5.3.orig/cipher/rsa.c 2017-07-03 08:21:25.889474882 -0400
19 +++ libgcrypt11-1.5.3/cipher/rsa.c 2017-07-03 08:21:25.873474883 -0400
20 @@ -747,6 +747,7 @@ secret(gcry_mpi_t output, gcry_mpi_t inp
21 mpi_mul ( h, h, skey->p );
22 mpi_add ( output, m1, h );
24 + mpi_free ( r );
25 mpi_free ( D_blind );
26 mpi_free ( h );
27 mpi_free ( m1 );