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

Coverity analysis defect 121083: Macro compares unsigned to 0

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 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

      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@mongodb.com Tyler Seip (Inactive)
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: