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

Coverity analysis defect 120455: Uninitialized scalar 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 2021-09-20

      Uninitialized scalar field

      The field will contain an arbitrary value left over from earlier computations. A scalar field is not initialized by the constructor
      /src/mongo/bson/util/bsoncolumn.h:152: UNINIT_CTOR 120455 Class member declaration for "_scaleIndex".
      /src/mongo/bson/util/bsoncolumn.cpp:122: UNINIT_CTOR 120455 Non-static class member "_scaleIndex" 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:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: