[dpdk-dev] [PATCH 1/3] pdump: check getenv return value

2016-06-22 Thread Pattan, Reshma
Hi Ferruh, > -Original Message- > From: Yigit, Ferruh > Sent: Tuesday, June 21, 2016 5:56 PM > To: Pattan, Reshma ; dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH 1/3] pdump: check getenv return value > > On 6/21/2016 4:18 PM, Reshma Pattan wrote

[dpdk-dev] [PATCH 1/3] pdump: check getenv return value

2016-06-21 Thread Ferruh Yigit
On 6/21/2016 4:18 PM, Reshma Pattan wrote: > getenv can return a NULL pointer if the match for > SOCKET_PATH_HOME is not found in the environment. > NULL check is added to return immediately without > calling mkdir. > > Coverity issue 127344: return value check > Coverity issue 127347: null poin

[dpdk-dev] [PATCH 1/3] pdump: check getenv return value

2016-06-21 Thread Reshma Pattan
getenv can return a NULL pointer if the match for SOCKET_PATH_HOME is not found in the environment. NULL check is added to return immediately without calling mkdir. Coverity issue 127344: return value check Coverity issue 127347: null pointer dereference Fixes: 278f945402c5 ("pdump: add new lib