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

Coverity analysis defect 122012: Array compared against 0

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.0.0-rc0
    • None
    • None
    • Fully Compatible
    • ALL
    • Security 2022-04-18

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: