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

Coverity analysis defect 122012: Array compared against 0

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Fully Compatible
    • ALL
    • Security 2022-04-18

      Array compared against 0

      The address of an array is never NULL, so the comparison will always evaluate the same way. Array compared against NULL pointer
      /src/mongo/db/commands/fle2_compact.cpp:143: NO_EFFECT 122012 Comparing an array to null is not useful: ""false"", since the test will always evaluate as true.

            Assignee:
            erwin.pe@mongodb.com Erwin Pe
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: