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

Coverity analysis defect 72712: Unchecked return value

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Testing Infrastructure
    • Labels:
    • Fully Compatible
    • ALL

      Value returned from a function is not checked for errors before being used

      Defect 72712 (STATIC_C)
      Checker CHECKED_RETURN (subcategory none)
      File: /src/mongo/db/commands/user_management_commands.cpp
      Function mongo::<unnamed>::insertAuthzDocument(mongo::OperationContext *, const mongo::NamespaceString &, const mongo::BSONObj &, const mongo::BSONObj &)
      /src/mongo/db/commands/user_management_commands.cpp, line: 277
      Calling "runCommand" without checking return value (as is done elsewhere 75 out of 104 times).

                      client.runCommand("admin", gleBuilder.done(), res);
      

            Assignee:
            daniel.alabi@10gen.com Daniel Alabi
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: