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

Coverity analysis defect 121083: Macro compares unsigned to 0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 5.1.1
    • None
    • Fully Compatible
    • ALL
    • Service Arch 2021-11-15, Service Arch 2021-11-22
    • 1

    Description

      Macro compares unsigned to 0

      An unsigned value can never be negative, so this test will always evaluate the same way. An unsigned value can never be less than 0
      /src/mongo/transport/proxy_protocol_header_parser.cpp:103: NO_EFFECT 121083 This greater-than-or-equal-to-zero comparison of an unsigned value is always true. "value >= 0U".

      Attachments

        Activity

          People

            tyler.seip@mongodb.com Tyler Seip (Inactive)
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: