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

Coverity analysis defect 121569: Improper use of negative value

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.0.0-rc0
    • None
    • None
    • Fully Compatible
    • ALL
    • Server Serverless 2022-03-07

    Description

      Improper use of negative value

      The negative value may be unexpected by later operations, causing incorrect computations. Negative value can be returned from function is not being checked before being used improperly
      /src/mongo/db/repl/tenant_migration_shard_merge_util.cpp:149: NEGATIVE_RETURNS 121569 Assigning: "fileSize" = "metadataDoc[mongo::StringData("fileSize")].safeNumberLong()".

      Attachments

        Activity

          People

            christopher.caplinger@mongodb.com Christopher Caplinger
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: