Coverity analysis defect 134234: Unsigned compared against 0

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Server Security
    • ALL
    • Security 2023-02-06
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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/third_party/libmongocrypt/dist/src/mc-range-encoding.c:233: NO_EFFECT 134234 This less-than-zero comparison of an unsigned value is never true. "args.precision.value < 0U".

            Assignee:
            Shreyas Kalyan
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: