From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] proc-info: wrong sizeof argument in malloc function Date: Wed, 10 May 2017 18:50:39 +0200 Message-ID: <2148319.Mp7d4XTZbQ@xps> References: <1494307409-20019-1-git-send-email-kubax.kozak@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, "Van Haaren, Harry" , "Jain, Deepak K" To: "Jastrzebski, MichalX K" , "Kozak, KubaX" Return-path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id D67491C00 for ; Wed, 10 May 2017 18:50:40 +0200 (CEST) In-Reply-To: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 09/05/2017 10:44, Van Haaren, Harry: > > From: Michal Jastrzebski > > > > Coverity reported that an argument for sizeof was used improperly. > > We should allocate memory for value size that pointer points to, > > instead of pointer size itself. > > > > Coverity issue: 144523, 144521 > > Fixes: 7ac16a3660c0 ("app/proc-info: support xstats by ID and by name") > > > > Signed-off-by: Michal Jastrzebski > > > Please consider merging these in 17.05, this is an important fix for 32 bit systems. > > Acked-by: Harry van Haaren Applied, thanks