Thread (2 messages) flat view 2 messages, 2 authors, 2019-10-29

Re: [PATCH bpf-next] libbpf: fix off-by-one error in ELF sanity check

From: Alexei Starovoitov <hidden>
Date: 2019-10-29 03:29:17
Also in: bpf

On 10/28/19 4:37 PM, Andrii Nakryiko wrote:
libbpf's bpf_object__elf_collect() does simple sanity check after iterating
over all ELF sections, if checks that .strtab index is correct. Unfortunately,
due to section indices being 1-based, the check breaks for cases when .strtab
ends up being the very last section in ELF.

Fixes: 77ba9a5b48a7 ("tools lib bpf: Fetch map names from correct strtab")
Signed-off-by: Andrii Nakryiko <redacted>
4 year old bug. Nice!
Applied. Thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help