summaryrefslogtreecommitdiffstats
path: root/CHANGES.md
diff options
context:
space:
mode:
authorDarshan Sen <raisinten@gmail.com>2022-01-14 16:22:41 +0530
committerTomas Mraz <tomas@openssl.org>2022-01-26 17:15:52 +0100
commit59ccb72cd5cec3b4e312853621e12a68dacdbc7e (patch)
treef4066fb24a4b966c4fe1c21ff87af794320b0e60 /CHANGES.md
parent814999cb44135fd197945693a7c00cf0af784206 (diff)
Fix invalid malloc failures in PEM_write_bio_PKCS8PrivateKey()
When `PEM_write_bio_PKCS8PrivateKey()` was passed an empty passphrase string, `OPENSSL_memdup()` was incorrectly getting used for 0 bytes size allocation, which resulted in malloc failures. Fixes: https://github.com/openssl/openssl/issues/17506 Signed-off-by: Darshan Sen <raisinten@gmail.com> Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de> Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/17507)
Diffstat (limited to 'CHANGES.md')
-rw-r--r--CHANGES.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/CHANGES.md b/CHANGES.md
index 7ddc41a0e7..c4922be032 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -24,6 +24,11 @@ OpenSSL 3.1
### Changes between 3.0 and 3.1 [xx XXX xxxx]
+ * Fixed PEM_write_bio_PKCS8PrivateKey() to make it possible to use empty
+ passphrase strings.
+
+ *Darshan Sen*
+
* RNDR and RNDRRS support in provider functions to provide
random number generation for Arm CPUs (aarch64).