[PATCH] cipher:rsa: Fix missing initialization in generate_fips.
NIIBE Yutaka via Gcrypt-devel <[email protected]> Thu, 3 Jul 2025 11:21:58 +0900
| Newsgroups | gmane.comp.encryption.gpg.libgcrypt.devel |
|---|---|
| Message-ID | <292cb75a723c74b79ccd482c48620bd5f75c9e2e.1751509309.git.gniibe@fsij.org> |
* cipher/rsa.c (generate_fips): Initialize E, P and Q. -- Signed-off-by: NIIBE Yutaka <[email protected]> --- cipher/rsa.c | 1 + 1 file changed, 1 insertion(+) _______________________________________________ Gcrypt-devel mailing list [email protected] https://lists.gnupg.org/mailman/listinfo/gcrypt-devel
0001-cipher-rsa-Fix-missing-initialization-in-generate_fi.patch
(text/x-patch, 356 B)
diff --git a/cipher/rsa.c b/cipher/rsa.c
index 4c3a8e42..a501d7d8 100644
--- a/cipher/rsa.c
+++ b/cipher/rsa.c
@@ -483,6 +483,7 @@ generate_fips (RSA_secret_key *sk, unsigned int nbits, unsigned long use_e,
int idx;
gcry_sexp_t oneparm;
+ e = p = q = NULL;
tbl[0].value = &e;
tbl[1].value = &p;
tbl[2].value = &q;