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

Coverity analysis defect 114690: Unchecked dynamic_cast

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL

      Description

      Unchecked dynamic_cast

      If the dynamic_cast fails, a null pointer dereference will occur; if the dynamic_cast cannot fail, using static_cast instead offers better performance. Dynamic_cast may fail and return null if the type cast is incompatible
      /src/mongo/db/pipeline/expression.cpp:6240: FORWARD_NULL 114690 Dynamic cast to pointer "dynamic_cast <mongo::ExpressionConstant *>(this->_regex->get())" can return "NULL".

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              george.wangensteen George Wangensteen
              Reporter:
              xgen-internal-coverity Coverity Collector User
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: