Skip to content

Commit f47a069

Browse files
tniessenbengl
authored andcommitted
crypto: check result of BIO_new in X509ToObject
Match other call sites of BIO_new(BIO_s_mem()) and CHECK the result of the call. Refs: fb3a9cd PR-URL: #41979 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
1 parent ce99600 commit f47a069

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/crypto/crypto_common.cc

+1
Original file line numberDiff line numberDiff line change
@@ -1351,6 +1351,7 @@ MaybeLocal<Object> X509ToObject(
13511351
Local<Object> info = Object::New(env->isolate());
13521352

13531353
BIOPointer bio(BIO_new(BIO_s_mem()));
1354+
CHECK(bio);
13541355

13551356
if (names_as_string) {
13561357
// TODO(tniessen): this branch should not have to exist. It is only here

0 commit comments

Comments
 (0)