Re: [dpdk-dev] [PATCH v11 4/4] performance-thread: Fix cross compilation failed
From: Bruce Richardson <hidden>
Date: 2021-10-19 10:37:49
From: Bruce Richardson <hidden>
Date: 2021-10-19 10:37:49
On Tue, Oct 19, 2021 at 06:12:07PM +0800, zhihongx.peng@intel.com wrote:
From: Zhihong Peng <redacted>
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: stable@dpdk.org
Signed-off-by: Xueqin Lin <redacted>
Signed-off-by: Zhihong Peng <redacted>
---
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 <redacted> /Bruce