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

Coverity analysis defect 122917: Dereference null return value

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • ALL
    • QO 2022-10-03

      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/ce/ce_histogram.cpp:75: NULL_RETURNS 122917 Dereferencing a pointer that might be "nullptr" "key._path.cast()->name()" when calling "basic_string". [Note: The source code implementation of the function has been overridden by a builtin model.]

            Assignee:
            timour.katchaounov@mongodb.com Timour Katchaounov
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: