[jira] [Updated] (MESOS-6604) Uninitialized member ObjectApprover::weight_info.

2016-11-20 Thread Alexander Rukletsov (JIRA)

 [ 
https://issues.apache.org/jira/browse/MESOS-6604?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alexander Rukletsov updated MESOS-6604:
---
  Sprint: Mesosphere Sprint 47
Story Points: 1
  Labels: coverity mesosphere tech-debt  (was: coverity tech-debt)
Priority: Minor  (was: Major)

> Uninitialized member ObjectApprover::weight_info.
> -
>
> Key: MESOS-6604
> URL: https://issues.apache.org/jira/browse/MESOS-6604
> Project: Mesos
>  Issue Type: Bug
>Reporter: Benjamin Bannier
>Assignee: Benjamin Bannier
>Priority: Minor
>  Labels: coverity, mesosphere, tech-debt
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (MESOS-6604) Uninitialized member ObjectApprover::weight_info.

2016-11-20 Thread Alexander Rukletsov (JIRA)

 [ 
https://issues.apache.org/jira/browse/MESOS-6604?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alexander Rukletsov updated MESOS-6604:
---
Summary: Uninitialized member ObjectApprover::weight_info.  (was: 
Uninitialized member ObjectApprover::weight_info)

> Uninitialized member ObjectApprover::weight_info.
> -
>
> Key: MESOS-6604
> URL: https://issues.apache.org/jira/browse/MESOS-6604
> Project: Mesos
>  Issue Type: Bug
>Reporter: Benjamin Bannier
>Assignee: Benjamin Bannier
>  Labels: coverity, tech-debt
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (MESOS-6604) Uninitialized member ObjectApprover::weight_info

2016-11-20 Thread Benjamin Bannier (JIRA)

 [ 
https://issues.apache.org/jira/browse/MESOS-6604?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Benjamin Bannier updated MESOS-6604:

Shepherd: Alexander Rukletsov
Assignee: Benjamin Bannier

> Uninitialized member ObjectApprover::weight_info
> 
>
> Key: MESOS-6604
> URL: https://issues.apache.org/jira/browse/MESOS-6604
> Project: Mesos
>  Issue Type: Bug
>Reporter: Benjamin Bannier
>Assignee: Benjamin Bannier
>  Labels: coverity, tech-debt
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)