Coverity analysis defect 177506: Dereference after null check

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Storage Execution
    • ALL
    • Storage Execution 2025-11-24
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Dereference after null check

      Either the check against null is unnecessary, or there may be a null pointer dereference. Pointer is checked against null but then dereferenced anyway
      /src/mongo/db/timeseries/bucket_catalog/bucket_catalog_internal.cpp:703: FORWARD_NULL 177506 Comparing "reopeningContext" to null implies that "reopeningContext" might be null.
      /src/mongo/db/timeseries/bucket_catalog/bucket_catalog_internal.cpp:725: FORWARD_NULL 177506 Dereferencing null pointer "reopeningContext".

            Assignee:
            Binh Vo
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: