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

Coverity analysis defect 105216: Unchecked return value

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1.7
    • Component/s: Shell
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      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

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: