diff options
| author | Dan Carpenter <[email protected]> | 2022-07-19 09:50:32 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2022-07-19 17:45:45 +0000 |
| commit | c5d22f4cfe8dfb93f1db0a1e7e2e7ebc41395d98 (patch) | |
| tree | d71de2438770abdb4f9c9a9ea9eabaa265c2b7d4 /scripts/bpf_doc.py | |
| parent | bpf, docs: document BPF_MAP_TYPE_HASH and variants (diff) | |
| download | kernel-c5d22f4cfe8dfb93f1db0a1e7e2e7ebc41395d98.tar.gz kernel-c5d22f4cfe8dfb93f1db0a1e7e2e7ebc41395d98.zip | |
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: c0fa1b6c3efc ("bpf: btf: Add BTF tests")
Signed-off-by: Dan Carpenter <[email protected]>
Acked-by: Martin KaFai Lau <[email protected]>
Link: https://lore.kernel.org/r/YtZ+aD/tZMkgOUw+@kili
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions
