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

Coverity analysis defect 120880: Unsigned compared against 0

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • 5.1.0-rc0
    • 5.2.0, 5.1.1
    • None
    • Fully Compatible
    • v5.1
    • QE 2021-11-01

    Description

      Unsigned compared against 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/db/exec/sbe/expressions/expression.cpp:478: NO_EFFECT 120880 This greater-than-or-equal-to-zero comparison of an unsigned value is always true. "n >= 0UL".

      Attachments

        Issue Links

          Activity

            People

              neil.shweky@mongodb.com Neil Shweky (Inactive)
              xgen-internal-coverity Coverity Collector User
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: