summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorAndrii Nakryiko <andriin@fb.com>2019-11-07 05:08:54 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-01-26 12:00:58 +0300
commit2948fecb0e3f2364b79b1d306712468014d135dd (patch)
treeac065bd1727c6035a42b61f68458839f413d58e9 /samples
parent5a3c8e037978e963469395b091e553a479f576c0 (diff)
downloadlinux-2948fecb0e3f2364b79b1d306712468014d135dd.tar.xz
libbpf: Make btf__resolve_size logic always check size error condition
commit 994021a7e08477f7e51285920aac99fc967fae8a upstream. 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 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions