aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/linker.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2021-11-24 00:23:16 +0000
committerDaniel Borkmann <[email protected]>2021-11-25 23:15:02 +0000
commit2a6a9bf26170b4e156c18706cd230934ebd2f95f (patch)
treeb542fe70eedb6b9914aa75d2aa61373779a79a84 /tools/lib/bpf/linker.c
parentlibbpf: Fix potential misaligned memory access in btf_ext__new() (diff)
downloadkernel-2a6a9bf26170b4e156c18706cd230934ebd2f95f.tar.gz
kernel-2a6a9bf26170b4e156c18706cd230934ebd2f95f.zip
libbpf: Don't call libc APIs with NULL pointers
Sanitizer complains about qsort(), bsearch(), and memcpy() being called with NULL pointer. This can only happen when the associated number of elements is zero, so no harm should be done. But still prevent this from happening to keep sanitizer runs clean from extra noise. Signed-off-by: Andrii Nakryiko <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/linker.c')
0 files changed, 0 insertions, 0 deletions