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

Coverity analysis defect 117575: Unsigned compared against 0

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • ALL
    • Query Execution 2021-03-08

      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:422: NO_EFFECT 117575 This greater-than-or-equal-to-zero comparison of an unsigned value is always true. "n >= 0UL".

            Assignee:
            kyle.suarez@mongodb.com Kyle Suarez
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: