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

Coverity analysis defect 105216: Unchecked return value

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.1.7
    • None
    • Shell
    • Fully Compatible
    • ALL
    • Repl 2019-01-28

    Description

      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);

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: