Skip to content

Conversation

@nielsdos
Copy link
Member

When the BIO is created but writing fails, these can leak.

Detected using an experimental static analysis I'm developing.

When the BIO is created but writing fails, these can leak.
Copy link
Member

@devnexen devnexen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BIO_free doing null check, LGTM

@nielsdos
Copy link
Member Author

BIO_free doing null check, LGTM

Yeah, plus in other places in this file we do the same thing where we rely on the NULL check done by the OpenSSL API.

@nielsdos nielsdos closed this in 29f96fb Apr 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants