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

Coverity analysis defect 171648: Unchecked dynamic_cast

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Atlas Streams
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
      /data/mci/8df2c396557fb87fa29efdf21060b868/bazel_cache/18545ad5d47fdc81034b726533d3cf62/execroot/_main_/src/mongo/db/modules/enterprise/src/streams/exec/window_aware_operator.cpp:706: FORWARD_NULL 171648 Dynamic cast to pointer "dynamic_cast <streams::SessionWindowAssigner *>(options.windowAssigner.get())" can return "NULL".
      /data/mci/8df2c396557fb87fa29efdf21060b868/bazel_cache/18545ad5d47fdc81034b726533d3cf62/execroot/_main_/src/mongo/db/modules/enterprise/src/streams/exec/window_aware_operator.cpp:706: FORWARD_NULL 171648 Assigning: "assigner" = "dynamic_cast <streams::SessionWindowAssigner *>(options.windowAssigner.get())".

            Assignee:
            Unassigned Unassigned
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              None
              None
              None
              None