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

Coverity analysis defect 120851: Improper use of negative value

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 5.2.0
    • None
    • None
    • Fully Compatible
    • ALL

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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: