Skip to content
Commit d4e6d684 authored by Andrii Nakryiko's avatar Andrii Nakryiko Committed by Daniel Borkmann
Browse files

libbpf: Fix potential NULL dereference when parsing ELF



Fix if condition filtering empty ELF sections to prevent NULL
dereference.

Fixes: 47ea7417 ("libbpf: Skip empty sections in bpf_object__init_global_data_maps")
Signed-off-by: default avatarAndrii Nakryiko <andrii@kernel.org>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
Acked-by: default avatarHao Luo <haoluo@google.com>
Link: https://lore.kernel.org/bpf/20220816001929.369487-2-andrii@kernel.org
parent 738a2f2f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment