From f50dde6269bd1da5da8776fc9d9f4e66d898f58d 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 028be916a..00ba26d7d 100644 --- a/sm/minip12.c +++ b/sm/minip12.c @@ -1248,7 +1248,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;