summaryrefslogtreecommitdiff
path: root/tools/lib/bpf/bpf_tracing.h
diff options
context:
space:
mode:
authorAndrii Nakryiko <andriin@fb.com>2019-11-06 18:08:54 -0800
committerDaniel Borkmann <daniel@iogearbox.net>2019-11-07 16:20:38 +0100
commit994021a7e08477f7e51285920aac99fc967fae8a (patch)
treeb60c21f9c262698672f83d22dc89a66c98425d2b /tools/lib/bpf/bpf_tracing.h
parentdd3ab126379ec040b3edab8559f9c72de6ef9d29 (diff)
libbpf: Make btf__resolve_size logic always check size error condition
Perform size check always in btf__resolve_size. Makes the logic a bit more robust against corrupted BTF and silences LGTM/Coverity complaining about always true (size < 0) check. Fixes: 69eaab04c675 ("btf: extract BTF type size calculation") Signed-off-by: Andrii Nakryiko <andriin@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/20191107020855.3834758-5-andriin@fb.com
Diffstat (limited to 'tools/lib/bpf/bpf_tracing.h')
0 files changed, 0 insertions, 0 deletions