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

Coverity analysis defect 77721: Big parameter passed by value

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • ALL

    Description

      A large function call parameter or exception catch statement is passed by value

      Defect 77721 (STATIC_C)
      Checker PASS_BY_VALUE (subcategory none)
      File: /src/mongo/util/assert_util.h
      Function mongo::uassertStatusOK<mongo::MongoURI>(mongo::StatusWith<T1>)
      /src/mongo/util/assert_util.h, line: 245
      Passing parameter sw of type "mongo::StatusWith<mongo::MongoURI>" (size 136 bytes) by value.

          inline T uassertStatusOK(StatusWith<T> sw) {

      Attachments

        Activity

          People

            jonathan.reams@mongodb.com Jonathan Reams
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: