Re: [dpdk-dev] [PATCH v1] examples/vm_power: fix strcpy buffer overrun

2019-07-12 Thread Bruce Richardson
On Fri, Jul 12, 2019 at 03:04:02PM +0100, David Hunt wrote: > replace strcpy with rte_strlcpy to prevent buffer overrun > With fix, attempting to use a VERY lonng vm name results in a nicely > truncated 32 character name rather than a segfault: > Setting VM Name to [sdfdsfsfsdffdsdsasdsadasdakjshd]

Re: [dpdk-dev] [PATCH v1] examples/vm_power: fix strcpy buffer overrun

2019-07-12 Thread Burakov, Anatoly
On 12-Jul-19 3:04 PM, David Hunt wrote: replace strcpy with rte_strlcpy to prevent buffer overrun With fix, attempting to use a VERY lonng vm name results in a nicely truncated 32 character name rather than a segfault: Setting VM Name to [sdfdsfsfsdffdsdsasdsadasdakjshd] Cc: sta...@dpdk.org Fixe

[dpdk-dev] [PATCH v1] examples/vm_power: fix strcpy buffer overrun

2019-07-12 Thread David Hunt
replace strcpy with rte_strlcpy to prevent buffer overrun With fix, attempting to use a VERY lonng vm name results in a nicely truncated 32 character name rather than a segfault: Setting VM Name to [sdfdsfsfsdffdsdsasdsadasdakjshd] Cc: sta...@dpdk.org Fixes: 59287933a0bb ("examples/vm_power: add o