Coverity analysis defect 121569: Improper use of negative value

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 6.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • ALL
    • Server Serverless 2022-03-07
    • None
    • 3
    • 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
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: