Skip to content

crypto: add null checks for OPENSSL_INIT_new()#63457

Open
ndossche wants to merge 1 commit into
nodejs:mainfrom
ndossche:clesss-7
Open

crypto: add null checks for OPENSSL_INIT_new()#63457
ndossche wants to merge 1 commit into
nodejs:mainfrom
ndossche:clesss-7

Conversation

@ndossche
Copy link
Copy Markdown
Contributor

Other calls in initialization code often already check for null pointers via CHECK_NOT_NULL(). Do the same here.

This was found with the help of a static-dynamic analyzer I'm working on.

@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/crypto
  • @nodejs/startup

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. crypto Issues and PRs related to the crypto subsystem. needs-ci PRs that need a full CI run. labels May 20, 2026
Other calls in initialization code often already check for null pointers
via CHECK_NOT_NULL(). Do the same here.

Signed-off-by: ndossche <7771979+ndossche@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. crypto Issues and PRs related to the crypto subsystem. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants