Skip to content
Commit 19a2bdba authored by Rong Tao's avatar Rong Tao Committed by Daniel Borkmann
Browse files

samples/bpf: Fix wrong allocation size in xdp_router_ipv4_user



prefix_key->data allocates three bytes using alloca(), but four bytes are
actually accessed in the program.

Signed-off-by: default avatarRong Tao <rongtao@cestc.cn>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/tencent_F9E2E81922B0C181D05B96DAE5AB0ACE6B06@qq.com
parent b74344cb
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment