]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Fix another potential overflow issue in bpf_prog_linfo
authorAndrii Nakryiko <andriin@fb.com>
Thu, 7 Nov 2019 02:08:53 +0000 (18:08 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 7 Nov 2019 15:20:38 +0000 (16:20 +0100)
commitb6403e784184826f5489ff0ad8b2b59e1788e589
tree7ff757172c2fe2ab17556472f38d05b09d28b20b
parent5546d8756aa2eb68ace4b8398aa9c81ef71865f8
libbpf: Fix another potential overflow issue in bpf_prog_linfo

Fix few issues found by Coverity and LGTM.

Fixes: 98a88c9a7b51 ("bpf: libbpf: bpftool: Print bpf_line_info during prog dump")
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20191107020855.3834758-4-andriin@fb.com
tools/lib/bpf/bpf_prog_linfo.c