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

Coverity analysis defect 73620: 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 73620 (STATIC_C)
      Checker PASS_BY_VALUE (subcategory none)
      File: /src/mongo/s/chunk.cpp
      Function mongo::Chunk::Chunk(mongo::OperationContext *, const mongo::ChunkManager *, mongo::ChunkType)
      /src/mongo/s/chunk.cpp, line: 162
      Passing parameter from of type "mongo::ChunkType" (size 136 bytes) by value.

          Chunk::Chunk(OperationContext* txn, const ChunkManager* manager, ChunkType from)

      Attachments

        Activity

          People

            spencer@mongodb.com Spencer Brody (Inactive)
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: