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 fbb32e0

Browse filesBrowse files
wooffietargos
authored andcommitted
src: add nullptr handling for NativeKeyObject
Fixes: #56899 PR-URL: #56900 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Filip Skokan <panva.ip@gmail.com>
1 parent de77371 commit fbb32e0
Copy full SHA for fbb32e0

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

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

‎src/crypto/crypto_keys.cc‎

Copy file name to clipboardExpand all lines: src/crypto/crypto_keys.cc
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,6 +1045,7 @@ void NativeKeyObject::New(const FunctionCallbackInfo<Value>& args) {
10451045
CHECK_EQ(args.Length(), 1);
10461046
CHECK(args[0]->IsObject());
10471047
KeyObjectHandle* handle = Unwrap<KeyObjectHandle>(args[0].As<Object>());
1048+
CHECK_NOT_NULL(handle);
10481049
new NativeKeyObject(env, args.This(), handle->Data());
10491050
}
10501051

0 commit comments

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