Skip to content

tls: fix error stack conversion in cryptoErrorListToException()#56554

Merged
nodejs-github-bot merged 1 commit intonodejs:mainfrom
joyeecheung:fix-error-list
Jan 12, 2025
Merged

tls: fix error stack conversion in cryptoErrorListToException()#56554
nodejs-github-bot merged 1 commit intonodejs:mainfrom
joyeecheung:fix-error-list

Conversation

@joyeecheung
Copy link
Copy Markdown
Member

@joyeecheung joyeecheung commented Jan 10, 2025

The ncrypto move introduced regressions in
cryptoErrorListToException() by passing in the size of the vector unnecessarily into the vector constructor and then use push_back() (which would result in a crash on dereferencing empty handles during later iteration) and having incorrect logic for checking the presence of an exception. This patch fixes it.

Fixes: #56375
Refs: #53803

Loading
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.