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

Coverity analysis defect 133960: Uninitialized pointer field

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • ALL
    • Execution Team 2022-10-31, Execution Team 2022-11-14

      Uninitialized pointer field

      The pointer field will point to an arbitrary memory location, any attempt to write may cause corruption. A pointer field is not initialized in the constructor
      /src/mongo/bson/util/bsoncolumnbuilder.h:207: UNINIT_CTOR 133960 Class member declaration for "_bufBuilder".
      /src/mongo/bson/util/bsoncolumnbuilder.cpp:737: UNINIT_CTOR 133960 Non-static class member "_bufBuilder" is not initialized in this constructor nor in any functions that it calls.

            Assignee:
            henrik.edin@mongodb.com Henrik Edin
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: