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

Coverity analysis defect 98215: Dereference null return value

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.3.5
    • Affects Version/s: None
    • Component/s: HTTP Console
    • Fully Compatible
    • ALL
    • Sharding 13 (04/22/16)

      Return value of function which returns null is dereferenced without checking

      Defect 98215 (STATIC_C)
      Checker NULL_RETURNS (subcategory none)
      File: /src/mongo/db/dbwebserver.cpp
      Function mongo::<unnamed>::CommandsHandler::_cmd(const std::basic_string<char, std::char_traits<char>, std::allocator<char>>&) const
      /src/mongo/db/dbwebserver.cpp, line: 292
      Assigning: "cmd" = null return value from "findCommand".

                  Command* cmd = Command::findCommand(cmdName);
      

            Assignee:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: