[dpdk-dev] [PATCH v4] app/testpmd: fix copying the name of the dynflag
Iremonger, Bernard
bernard.iremonger at intel.com
Tue Feb 4 15:39:34 CET 2020
> -----Original Message-----
> From: Ori Kam <orika at mellanox.com>
> Sent: Tuesday, February 4, 2020 1:40 PM
> To: Lu, Wenzhuo <wenzhuo.lu at intel.com>; Wu, Jingjing
> <jingjing.wu at intel.com>; Iremonger, Bernard
> <bernard.iremonger at intel.com>
> Cc: dev at dpdk.org; orika at mellanox.com; Yigit, Ferruh
> <ferruh.yigit at intel.com>; viacheslavo at mellanox.com
> Subject: [PATCH v4] app/testpmd: fix copying the name of the dynflag
>
> When working with testpmd and setting the dynflag name, we copy the
> name given by the cmd to the dynflag name.
>
> The issue is that the size of the dynflag name is smaller then the string used
> by testpmd.
>
> This commit solves this issue by checking that the length of the requested
> flag name is not too long.
>
> Coverity issue: 353610
>
> Fixes: b57b66a97ebf ("app/testpmd: support mbuf dynamic flag")
>
> Signed-off-by: Ori Kam <orika at mellanox.com>
Acked-by: Bernard Iremonger <bernard.iremonger at intel.com>
More information about the dev
mailing list