Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 70e463c

Browse filesBrowse files
tniessenrvagg
authored andcommitted
crypto: fix error condition in Verify::VerifyFinal
Fail early if key parsing failed, don't try to construct a context out of it. PR-URL: #26238 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
1 parent a9a2c58 commit 70e463c
Copy full SHA for 70e463c

File tree

Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed
Open diff view settings
Collapse file

‎src/node_crypto.cc‎

Copy file name to clipboardExpand all lines: src/node_crypto.cc
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4648,6 +4648,8 @@ void Verify::VerifyFinal(const FunctionCallbackInfo<Value>& args) {
46484648

46494649
unsigned int offset = 0;
46504650
ManagedEVPPKey pkey = GetPublicOrPrivateKeyFromJs(args, &offset, true);
4651+
if (!pkey)
4652+
return;
46514653

46524654
char* hbuf = Buffer::Data(args[offset]);
46534655
ssize_t hlen = Buffer::Length(args[offset]);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.