Coverity analysis defect 121890: Dereference null return value

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor - P4
    • 6.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • ALL
    • QE 2022-03-21
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Dereference null return value

      If the function actually returns a null value, a null pointer dereference will occur. Return value of function which returns null is dereferenced without checking
      /src/mongo/db/query/sbe_stage_builder_lookup.cpp:284: NULL_RETURNS 121890 Assigning: "indexDescriptor" = "nullptr" return value from "findIndexByName".

            Assignee:
            Rui Liu
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: