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

Coverity analysis defect 105105: Uninitialized pointer field

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Works as Designed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Sharding
    • Labels:
    • Operating System:
      ALL
    • Sprint:
      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

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: