Coverity analysis defect 121083: Macro compares unsigned to 0

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 5.1.1
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • ALL
    • Service Arch 2021-11-15, Service Arch 2021-11-22
    • 1
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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".

            Assignee:
            Tyler Seip (Inactive)
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: