Commit c5d22f4c authored by Dan Carpenter's avatar Dan Carpenter Committed by Alexei Starovoitov
Browse files

selftests/bpf: fix a test for snprintf() overflow

The snprintf() function returns the number of bytes which *would*
have been copied if there were space.  In other words, it can be
> sizeof(pin_path).

Fixes: c0fa1b6c

 ("bpf: btf: Add BTF tests")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarMartin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/r/YtZ+aD/tZMkgOUw+@kili


Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
parent 979855d3
Supports Markdown
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