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

Coverity analysis defect 122072: Macro compares unsigned to 0

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • ALL
    • Security 2022-05-02
    • None
    • 0
    • 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/db/fle_crud.cpp:1159: NO_EFFECT 122072 This greater-than-or-equal-to-zero comparison of an unsigned value is always true. "docCount >= 0UL".

            Assignee:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: