aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/bpf_doc.py
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2022-07-19 09:51:28 +0000
committerAlexei Starovoitov <[email protected]>2022-07-19 17:47:31 +0000
commitb77ffb30cfc5f58e957571d8541c6a7e3da19221 (patch)
tree08d945ad390d43a3da4ab590fe3264f215b867cf /scripts/bpf_doc.py
parentselftests/bpf: fix a test for snprintf() overflow (diff)
downloadkernel-b77ffb30cfc5f58e957571d8541c6a7e3da19221.tar.gz
kernel-b77ffb30cfc5f58e957571d8541c6a7e3da19221.zip
libbpf: fix an snprintf() overflow check
The snprintf() function returns the number of bytes it *would* have copied if there were enough space. So it can return > the sizeof(gen->attach_target). Fixes: 67234743736a ("libbpf: Generate loader program out of BPF ELF file.") Signed-off-by: Dan Carpenter <[email protected]> Acked-by: Martin KaFai Lau <[email protected]> Link: https://lore.kernel.org/r/YtZ+oAySqIhFl6/J@kili Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions