diff options
author | Dan Carpenter <[email protected]> | 2022-07-19 12:50:32 +0300 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2022-07-19 10:45:45 -0700 |
commit | c5d22f4cfe8dfb93f1db0a1e7e2e7ebc41395d98 (patch) | |
tree | d71de2438770abdb4f9c9a9ea9eabaa265c2b7d4 /tools/perf/scripts/python/intel-pt-events.py | |
parent | 979855d3026401ed6eecfd1935d19fd7b74df479 (diff) |
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 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions