Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-6604

Uninitialized member ObjectApprover::weight_info.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2.0
    • Component/s: None
    • Sprint:
      Mesosphere Sprint 47
    • Story Points:
      1

      Description

      In include/mesos/authorizer/authorizer.hpp the member ObjectApprover::weight_info is a raw ptr which is not initialized (with nullptr) in the ctr.

      While the member is public, requiring users to set up the class is error-prone; it is also contrary to what is done for other members.

      Instead this member should be initialized to nullptr. As a more long-term solution we should consider introducing some non-owning wrapper for raw ptrs to stout which on construction initializes the raw ptr, see MESOS-6603.

      This was detected by coverity as CID 1394390.

        Attachments

          Activity

            People

            • Assignee:
              bbannier Benjamin Bannier
              Reporter:
              bbannier Benjamin Bannier
              Shepherd:
              Alex R
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: