Skip to content

crypto: check return values of BIO output functions - #65201

Open
ndossche wants to merge 1 commit into
nodejs:mainfrom
ndossche:bio-out-1
Open

crypto: check return values of BIO output functions#65201
ndossche wants to merge 1 commit into
nodejs:mainfrom
ndossche:bio-out-1

Conversation

@ndossche

Copy link
Copy Markdown
Contributor

BIO_write(), BIO_printf(), and ASN1_TIME_print() can fail which will result in an incomplete output to the BIO.
Check the return values for this.

This was found by a static-dynamic analyser I'm devleoping.

Supersedes nodejs/ncrypto#52

BIO_write(), BIO_printf(), and ASN1_TIME_print() can fail which will
result in an incomplete output to the BIO.
Check the return values for this.

Signed-off-by: ndossche <nora.dossche@ugent.be>
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/crypto
  • @nodejs/security-wg

@nodejs-github-bot nodejs-github-bot added dependencies Pull requests that update a dependency file. needs-ci PRs that need a full CI run. labels Aug 10, 2026
@panva
panva requested a review from tniessen August 10, 2026 21:41
daltino

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants