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

Coverity analysis defect 105216: Unchecked return value

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.7
    • Affects Version/s: None
    • Component/s: Shell
    • Fully Compatible
    • ALL
    • Repl 2019-01-28

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

      Defect 105216 (STATIC_C)
      Checker CHECKED_RETURN (subcategory none)
      File: /src/mongo/scripting/mozjs/session.cpp
      Function mongo::mozjs::<unnamed>::endSession(mongo::mozjs::SessionHolder *)
      /src/mongo/scripting/mozjs/session.cpp, line: 130
      Calling "runCommand" without checking return value (as is done elsewhere 23 out of 43 times).

                  holder->client->runCommand("admin", abortObj, out);
      

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: