On Tue, Oct 19, 2021 at 06:12:07PM +0800, [email protected] wrote: > From: Zhihong Peng <[email protected]> > > The gcc(arm-linux-gcc) will check code more stricter when ASan enabled. > "strncpy specified bound XX equals destination size" error occurs here. > > Fixes: 116819b9ed0d ("examples/performance-thread: add lthread subsystem") > Cc: [email protected] > > Signed-off-by: Xueqin Lin <[email protected]> > Signed-off-by: Zhihong Peng <[email protected]> > --- > v11: Use rte_strlcpy to replace strncpy. > ---
+1 to using strlcpy, but it should be "strlcpy" rather than "rte_strlcpy" which should be used. Analysis tools are likely to be familiar with strlcpy but won't know the DPDK-specific version of it. With that change to remove the rte_ prefix Acked-by: Bruce Richardson <[email protected]> /Bruce

