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

Coverity analysis defect 115653: Improper use of negative value (remove traffic_reader_main.cpp file)

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.2.0-rc0
    • None
    • Diagnostics
    • Fully Compatible
    • ALL
    • Service Arch 2022-09-05, Service Arch 2022-09-19

    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/traffic_reader_main.cpp:105: NEGATIVE_RETURNS 115653 Function "open(inputFile.c_str(), 0)" returns a negative number.
      /src/mongo/db/traffic_reader_main.cpp:105: NEGATIVE_RETURNS 115653 Assigning: "inputFd" = "open(inputFile.c_str(), 0)".

      Attachments

        Activity

          People

            alex.li@mongodb.com Alex Li
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: