Skip to content

Commit c277f98

Browse files
committed
fixup! crypto: add guards and adjust tests for BoringSSL
1 parent fab1c9a commit c277f98

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/crypto/crypto_util.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,7 @@ void SecureBuffer(const FunctionCallbackInfo<Value>& args) {
736736
uint32_t len = args[0].As<Uint32>()->Value();
737737

738738
auto data = DataPointer::SecureAlloc(len);
739+
CHECK(data.isSecure());
739740
if (!data) {
740741
return THROW_ERR_OPERATION_FAILED(env, "Allocation failed");
741742
}

0 commit comments

Comments
 (0)