Coverity analysis defect 175026: Dereference of potentially null field

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Server Programmability
    • ALL
    • Programmability 2025-09-01
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Dereference of potentially null field

      If the field is actually null, then a null pointer dereference will occur. Field, which is statistically checked against null, is dereferenced.
      /src/mongo/bson/util/bsoncolumnbuilder.cpp:712: NULL_FIELD 175026 Reading field "control", which is expected to possibly be "nullptr" in "this->current.control" (checked 7 out of 7 times).
      /src/mongo/bson/util/bsoncolumnbuilder.cpp:712: NULL_FIELD 175026 Assigning: "control" = "this->current.control".
      /src/mongo/bson/util/bsoncolumnbuilder.cpp:718: NULL_FIELD 175026 Dereferencing "control", which is known to be "nullptr".

            Assignee:
            Alex Li
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: