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

2018-07-26 Thread Thomas Monjalon
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

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

2018-07-20 Thread 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 ("bitr