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

Coverity analysis defect 105062: Uninitialized pointer field

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1.5
    • Component/s: Security
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: