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 rte_strlcpy, as the rte_ version is only a
> fallback.
> 
> As well as the fix in main.c, this patch also changes an occurrence of
> rte_strlcpy in channel_manager.c and channel_monitor.c to strlcpy.
> 
> Fixes: 59287933a0bb ("examples/vm_power: add options to guest app")
> Cc: sta...@dpdk.org
> Signed-off-by: David Hunt <david.h...@intel.com>
> Acked-by: Anatoly Burakov <anatoly.bura...@intel.com>

Applied, thanks



Reply via email to