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

Coverity analysis defect 105105: Uninitialized pointer field

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Works as Designed
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Sharding
    • ALL
    • Sharding 2018-11-19

    Description

      A pointer field is not initialized in the constructor

      Defect 105105 (STATIC_C)
      Checker UNINIT_CTOR (subcategory pointer)
      File: /src/mongo/db/s/active_shard_collection_registry.cpp
      Function mongo::ScopedShardCollection::ScopedShardCollection(mongo::ScopedShardCollection&&)
      /src/mongo/db/s/active_shard_collection_registry.h, line: 156
      Class member declaration for "_registry".

              ActiveShardCollectionRegistry* _registry;

      /src/mongo/db/s/active_shard_collection_registry.cpp, line: 155
      Non-static class member "_registry" is not initialized in this constructor nor in any functions that it calls.

          }

      Attachments

        Activity

          People

            janna.golden@mongodb.com Janna Golden
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: