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

Coverity analysis defect 100574: Dereference null return value

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • Labels:
    • Fully Compatible
    • ALL

      Return value of function which returns null is dereferenced without checking

      Defect 100574 (STATIC_C)
      Checker NULL_RETURNS (subcategory none)
      File: /src/mongo/db/query/index_tag.cpp
      Function mongo::<unnamed>::resolveOrPushdowns(mongo::MatchExpression *)
      /src/mongo/db/query/index_tag.cpp, line: 232
      Assigning: "indexedOr" = null return value from "getIndexedOr".

                  MatchExpression* indexedOr = getIndexedOr(andNode);
      

            Assignee:
            tess.avitabile@mongodb.com Tess Avitabile (Inactive)
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: