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

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • Service Arch 2022-09-05, Service Arch 2022-09-19
    • 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/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)".

            Assignee:
            Alex Li
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: