1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-10-29 19:48:43 +01:00

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
This commit is contained in:
Werner Koch 2024-10-01 12:36:16 +02:00
parent f1e1cb0767
commit 41626a1661
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -1245,7 +1245,7 @@ parse_shrouded_key_bag (struct p12_parse_ctx_s *ctx, tlv_parser_t tlv)
const unsigned char *data; const unsigned char *data;
size_t datalen; size_t datalen;
int intval; int intval;
char salt[20]; char salt[32];
size_t saltlen; size_t saltlen;
char iv[16]; char iv[16];
unsigned int iter; unsigned int iter;