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

Coverity analysis defect 105062: Uninitialized pointer field

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.1.5
    • None
    • Security
    • Fully Compatible
    • ALL
    • Security 2018-10-08, Security 2018-10-22

    Description

      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) {}

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: