libbpf: Poison strlcpy()
authorRong Tao <rongtao@cestc.cn>
Thu, 5 Jan 2023 14:36:33 +0000 (22:36 +0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 6 Jan 2023 15:57:23 +0000 (16:57 +0100)
commit6d0c4b11e743b84eb57898783e9adecb9083b269
tree4b5506b1c1205e7284a1bf479edcf981f597a2f4
parent6bd4755c7c499dbcef46eaaeafa1a319da583b29
libbpf: Poison strlcpy()

Since commit 9fc205b413b3("libbpf: Add sane strncpy alternative and use
it internally") introduce libbpf_strlcpy(), thus add strlcpy() to a poison
list to prevent accidental use of it.

Signed-off-by: Rong Tao <rongtao@cestc.cn>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Stanislav Fomichev <sdf@google.com>
Link: https://lore.kernel.org/bpf/tencent_5695A257C4D16B4413036BA1DAACDECB0B07@qq.com
tools/lib/bpf/libbpf_internal.h