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

Coverity analysis defect 105062: Uninitialized pointer field

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.5
    • Affects Version/s: None
    • Component/s: Security
    • Labels:
    • Fully Compatible
    • ALL
    • Security 2018-10-08, Security 2018-10-22

      A pointer field is not initialized in the constructor

      Defect 105062 (STATIC_C)
      Checker UNINIT_CTOR (subcategory pointer)
      File: /src/mongo/db/auth/authorization_manager_impl.cpp
      Function mongo::<unnamed>::PinnedUserSetParameter::PinnedUserSetParameter()
      /src/mongo/db/auth/authorization_manager_impl.cpp, line: 217
      Class member declaration for "_authzManager".

              AuthorizationManager* _authzManager;
      

      /src/mongo/db/auth/authorization_manager_impl.cpp, line: 121
      Non-static class member "_authzManager" is not initialized in this constructor nor in any functions that it calls.

                        ServerParameterSet::getGlobal(), "authorizationManagerPinnedUsers", true, true) {}
      

            Assignee:
            jonathan.reams@mongodb.com Jonathan Reams
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: