[dpdk-dev] [PATCH v3] app/testpmd: fix null pointer dereferencing issue

2020-05-07 Thread Kalesh A P
From: Kalesh AP In cmd_ddp_get_list_parsed(), elements of "p_list" are accessed even after the memory allocation for "p_list" fails. With this patch, this null pointer dereference is avoided as we return when there is malloc failure. Fixes: e088907bb851 ("app/testpmd: add command for getting lo

Re: [dpdk-dev] [PATCH v3] app/testpmd: fix null pointer dereferencing issue

2020-05-08 Thread Ferruh Yigit
On 5/8/2020 5:50 AM, Kalesh A P wrote: > From: Kalesh AP > > In cmd_ddp_get_list_parsed(), elements of "p_list" are accessed > even after the memory allocation for "p_list" fails. > > With this patch, this null pointer dereference is avoided as we > return when there is malloc failure. > > Fixe