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

2019-07-16 Thread Thomas Monjalon
16/07/2019 13:19, 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 v3] 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