Skip to content

crypto: add null check to BIOPointer::New()#35

Merged
jasnell merged 1 commit into
nodejs:mainfrom
ndossche:clesss-1
Feb 12, 2026
Merged

crypto: add null check to BIOPointer::New()#35
jasnell merged 1 commit into
nodejs:mainfrom
ndossche:clesss-1

Conversation

@ndossche

Copy link
Copy Markdown
Contributor

This function calls BIO_new() which mustn't receive a null pointer argument. Yet it is able to handle null BIOs gracefully. To solve this, add a null check.

Ref: nodejs/node#61788

@jasnell

jasnell commented Feb 12, 2026

Copy link
Copy Markdown
Member

@ndossche ... looks like there's a minor commit convention lint issue to address

This function calls BIO_new() which mustn't receive a null pointer
argument. Yet it is able to handle null BIOs gracefully.
To solve this, add a null check.

Ref: nodejs/node#61788
@ndossche

Copy link
Copy Markdown
Contributor Author

I see, I hope I addressed this now. I got confused by the nodejs commit style rules vs the rules of this repo I think.

@jasnell jasnell merged commit 630ee8b into nodejs:main Feb 12, 2026
13 checks passed
@jasnell

jasnell commented Feb 12, 2026

Copy link
Copy Markdown
Member

Thank you!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants