Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id C053F200BC6 for ; Sun, 20 Nov 2016 20:02:59 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id BEEA5160B18; Sun, 20 Nov 2016 19:02:59 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 418EF160AFE for ; Sun, 20 Nov 2016 20:02:59 +0100 (CET) Received: (qmail 30006 invoked by uid 500); 20 Nov 2016 19:02:58 -0000 Mailing-List: contact issues-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mesos.apache.org Delivered-To: mailing list issues@mesos.apache.org Received: (qmail 29985 invoked by uid 99); 20 Nov 2016 19:02:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Nov 2016 19:02:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 57D122C4C70 for ; Sun, 20 Nov 2016 19:02:58 +0000 (UTC) Date: Sun, 20 Nov 2016 19:02:58 +0000 (UTC) From: "Alexander Rukletsov (JIRA)" To: issues@mesos.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (MESOS-6604) Uninitialized member ObjectApprover::weight_info. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sun, 20 Nov 2016 19:02:59 -0000 [ 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)