Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libbpf: don't crash on object files with no symbol tables
If libbpf encounters an ELF file that has been stripped of its symbol table, it will crash in bpf_object__add_programs() when trying to dereference the obj->efile.symbols pointer. Add a check and return to avoid this. Fixes: 6245947 ("libbpf: Allow gaps in BPF program sections to support overriden weak functions") Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
- Loading branch information