Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-5926

Segfault when procesing a command with empty namespace

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.1.2
    • Affects Version/s: 2.1.1
    • Component/s: Stability
    • None
    • ALL

      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"

            Assignee:
            randolph@mongodb.com Randolph Tan
            Reporter:
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: