-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
Return value of function, which is statistically inferred to return null, but with no source code available, is dereferenced
Defect 76370 (STATIC_C)
Checker NULL_RETURNS (subcategory unimpl)
File: /src/mongoc/mongoc-stream-tls.c
Function mongoc_stream_tls_new
/src/mongoc/mongoc-stream-tls.c, line: 986
"BIO_new" returns null (checked 2 out of 3 times).
bio_mongoc_shim = BIO_new (&gMongocStreamTlsRawMethods);
/src/mongoc/mongoc-stream-tls.c, line: 986
Assigning: "bio_mongoc_shim" = null return value from "BIO_new".
bio_mongoc_shim = BIO_new (&gMongocStreamTlsRawMethods);
/src/mongoc/mongoc-stream-tls.c, line: 1006
Dereferencing a null pointer "bio_mongoc_shim".
bio_mongoc_shim->ptr = tls;