From 41626a16613a042e7ba2ec65420a41e63ede1f69 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 1 Oct 2024 12:36:16 +0200 Subject: [PATCH] gpgsm: Possible improvement for some rare P12 files. * sm/minip12.c (parse_shrouded_key_bag): Increase size of salt buffer. -- Reported on the mailing list. The change does not seem to have a big regression risk, thus applied. See below for the mail # ------------------------ >8 ------------------------ https://lists.gnupg.org/pipermail/gnupg-users/2024-September/067312.html --- sm/minip12.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sm/minip12.c b/sm/minip12.c index 397c0f531..ac82755a6 100644 --- a/sm/minip12.c +++ b/sm/minip12.c @@ -1245,7 +1245,7 @@ parse_shrouded_key_bag (struct p12_parse_ctx_s *ctx, tlv_parser_t tlv) const unsigned char *data; size_t datalen; int intval; - char salt[20]; + char salt[32]; size_t saltlen; char iv[16]; unsigned int iter;