[dpdk-dev] [PATCH v2] lib/bitratestats: add NULL sanity checks

Thomas Monjalon thomas at monjalon.net
Thu Jul 26 20:07:03 CEST 2018


20/07/2018 17:31, Ferruh Yigit:
> 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 <remy.horton at intel.com>
> 
> Acked-by: Ferruh Yigit <ferruh.yigit at intel.com>

Applied, thanks





More information about the dev mailing list