Skip to content

Commit 2f7ef77

Browse files
committed
src: Add nullptr handling for NativeKeyObject
Fixes: #56899
1 parent 793c793 commit 2f7ef77

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/crypto/crypto_keys.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,6 +1063,7 @@ void NativeKeyObject::New(const FunctionCallbackInfo<Value>& args) {
10631063
CHECK_EQ(args.Length(), 1);
10641064
CHECK(args[0]->IsObject());
10651065
KeyObjectHandle* handle = Unwrap<KeyObjectHandle>(args[0].As<Object>());
1066+
CHECK_NOT_NULL(handle);
10661067
new NativeKeyObject(env, args.This(), handle->Data());
10671068
}
10681069

0 commit comments

Comments
 (0)