]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix magic + 20 in PEM_ASN1_write_bio
authorSean Kannanaikal <stk5106@rit.edu>
Wed, 22 Jan 2025 12:38:47 +0000 (07:38 -0500)
committerTomas Mraz <tomas@openssl.org>
Fri, 24 Jan 2025 16:14:39 +0000 (17:14 +0100)
commita59efbfc7ecb0197a48655b27a6d7e808d4a3040
tree08eac33895b7c888f79d7b0a06600331879f0353
parentb6f2ff93639d9c71aae62dfc72082dd0829c2170
Fix magic + 20 in PEM_ASN1_write_bio

Fixes #26476

In the file crypto/pem/pem_lib.c the function had a +20 to account for
padding in the data size, however this was recognized to not be up to
standard quality. Instead it has now been updated to use the static
maximum block size and uses that for the calculation as opposed to a +20.

CLA: trivial

Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26526)
crypto/pem/pem_lib.c