This repository was archived by the owner on Apr 10, 2025. It is now read-only.
Fix invalid malloc failures in PEM_write_bio_PKCS8PrivateKey*()#75
Closed
RaisinTen wants to merge 2 commits intoquictls:openssl-3.0.1+quicfrom
Closed
Fix invalid malloc failures in PEM_write_bio_PKCS8PrivateKey*()#75RaisinTen wants to merge 2 commits intoquictls:openssl-3.0.1+quicfrom
PEM_write_bio_PKCS8PrivateKey*()#75RaisinTen wants to merge 2 commits intoquictls:openssl-3.0.1+quicfrom
Conversation
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: openssl#17506 Signed-off-by: Darshan Sen <[email protected]> Reviewed-by: Bernd Edlinger <[email protected]> Reviewed-by: Paul Dale <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> (Merged from openssl#17507)
Signed-off-by: Darshan Sen <[email protected]> Reviewed-by: Bernd Edlinger <[email protected]> Reviewed-by: Paul Dale <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> (Merged from openssl#17507)
Member
|
If this is in the upstream openssl-3.0 branch, it will be in the the openssl-3.0.2+quic branch today. |
Author
|
Yes indeed, thanks for the updated. Closing since the required change is already present. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This cherry-picks my fix from openssl#17507, so that I can make use of it in Node.js where we use this fork instead of the main openssl repo for QUIC support.
cc @tmshort
Checklist