diff options
author | Werner Koch <[email protected]> | 2024-10-01 10:36:16 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2024-11-08 07:44:02 +0000 |
commit | 5f9975abf5252aa015a8e4b6cccef039ebfa9217 (patch) | |
tree | 9a726047259326fa8af8cfabf9dd57ccd16aad7f | |
parent | gpgconf: Add list flag to trusted-key et al. (diff) | |
download | gnupg-5f9975abf5252aa015a8e4b6cccef039ebfa9217.tar.gz gnupg-5f9975abf5252aa015a8e4b6cccef039ebfa9217.zip |
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
-rw-r--r-- | sm/minip12.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sm/minip12.c b/sm/minip12.c index 50aee7463..f7f37c50d 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; |