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

2019-07-16 Thread Hunt, David
On 16/07/2019 12:05, Thomas Monjalon wrote: 16/07/2019 10:24, David Hunt: replace strcpy with 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 [sdfdsfsfsdffdsdsasdsadasd

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

2019-07-16 Thread Thomas Monjalon
16/07/2019 10:24, David Hunt: > replace strcpy with 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] > > Using strlcpy rather than rt

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

2019-07-16 Thread David Hunt
replace strcpy with 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] Using strlcpy rather than rte_strlcpy, as the rte_ version is only a f