Re: [dpdk-dev] [PATCH] net/softnic: fix null pointer dereference

2021-07-30 Thread Thomas Monjalon
> > From: Dapeng Yu > > > > When there is no "firmware" in arguments, the "firmware" pointer is null, > > and will be dereferenced by rte_strscpy(). > > > > This patch moves the code block which copies character string from > > "firmware" to "p->firmware" into the "if" statements where "firmware

Re: [dpdk-dev] [PATCH] net/softnic: fix null pointer dereference

2021-07-27 Thread Singh, Jasvinder
> -Original Message- > From: Yu, DapengX > Sent: Tuesday, July 27, 2021 9:15 AM > To: Singh, Jasvinder ; Dumitrescu, Cristian > > Cc: dev@dpdk.org; Yu, DapengX ; sta...@dpdk.org > Subject: [PATCH] net/softnic: fix null pointer dereference > > From: Dapeng Yu > > When there is no "fi

[dpdk-dev] [PATCH] net/softnic: fix null pointer dereference

2021-07-27 Thread dapengx . yu
From: Dapeng Yu When there is no "firmware" in arguments, the "firmware" pointer is null, and will be dereferenced by rte_strscpy(). This patch moves the code block which copies character string from "firmware" to "p->firmware" into the "if" statements where "firmware" argument exists and it is