Description
A simple program that can make the mongod server crash:
string errMsg;
|
DBClientConnection conn;
|
conn.connect( "localhost:27017", errMsg );
|
|
BSONObj result;
|
conn.runCommand( "", BSON( "count" << "" ), result );
|
Note: v2.0.4 handles this gracefully by throwing the assertion: "User Assertion: 13074:db name can't be empty"