Connect mongoc_client_t with a replset URI containing no valid hosts:
"mongodb://a,b/?replicaSet=foo"
Do an operation that requires a connection, like mongoc_collection_find, then call mongoc_client_destroy. nodes_len is now the length of the seed list, but "nodes" itself is NULL because it was set to "bson_realloc (0)". Segfault here:
https://github.com/mongodb/mongo-c-driver/blob/1.1.8/src/mongoc/mongoc-cluster.c#L576
I introduced the bug in 1.1.8 while attempting to fix CDRIVER-695, here:
- is related to
-
CDRIVER-695 _mongoc_cluster_node_destroy segfaults in certain scenarios
- Closed
- related to
-
CDRIVER-726 Remove 1.1.8 release
- Closed