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

Thomas Monjalon thomas at monjalon.net
Fri Jul 30 13:33:08 CEST 2021


> > From: Dapeng Yu <dapengx.yu at intel.com>
> > 
> > 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 duplicated successfully.
> > 
> > Coverity issue: 372136
> > Fixes: d8f852f5f369 ("net/softnic: fix memory leak in arguments parsing")
> > Cc: stable at dpdk.org
> > 
> > Signed-off-by: Dapeng Yu <dapengx.yu at intel.com>
> 
> Acked-by: Jasvinder Singh <jasvinder.singh at intel.com>

Applied, thanks.





More information about the dev mailing list