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

Coverity analysis defect 120851: Improper use of negative value

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.2.0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • ALL

      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/modules/enterprise/src/fcbis/file_copy_based_initial_syncer.cpp:900: NEGATIVE_RETURNS 120851 Assigning: "fileSize" = "metadata[mongo::StringData("fileSize")].safeNumberLong()".

            Assignee:
            matthew.russotto@mongodb.com Matthew Russotto
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: