When we generate a key, if openssl fails to generate an RSA key, we currently retain a dangling pointer to the previous (uninitialized) key value. The impact here should be limited to a difficult-to-trigger crash, if OpenSSL is running an engine that makes key generation failures possible, or if OpenSSL runs out of memory.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Child items ...
Show closed items
Linked items 0
Link issues together to show that they're related.
Learn more.
The commit log starts with "let me walk through my analysis" rather than explaining what the issue is or what the fix is. Re-using some of the text from the changes file would be helpful, to give context to the person who is reading (since you clearly are intending for people to read this commit log). Like, you start talking about a non-engine case before I knew engines were involved.
The patch itself looks good to me.
I've mailed the original bug reporter so he can look it over too if he wants.