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

Coverity analysis defect 121569: Improper use of negative value

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • ALL
    • Server Serverless 2022-03-07
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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()".

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

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None