From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH v2] lib/bitratestats: add NULL sanity checks Date: Fri, 20 Jul 2018 16:31:45 +0100 Message-ID: <2d0db3f0-3eeb-99bd-33bb-731965d2228f@intel.com> References: <20180712104948.3113-1-remy.horton@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit To: Remy Horton , dev@dpdk.org Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 7100B2C2F for ; Fri, 20 Jul 2018 17:31:59 +0200 (CEST) In-Reply-To: <20180712104948.3113-1-remy.horton@intel.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 7/12/2018 11:49 AM, Remy Horton wrote: > If rte_stats_bitrate_reg() or rte_stats_bitrate_calc() are > passed NULL as the parameter for the stats structure, the > result is a crash. Fixed by adding a sanity check that makes > sure the passed-in pointer is not NULL. > > Fixes: 2ad7ba9a6567 ("bitrate: add bitrate statistics library") > > Signed-off-by: Remy Horton Acked-by: Ferruh Yigit