iovisor/ubpf

Wrong offset check of relocated function?

Opened this issue · 0 comments

I have been going through the ubpf_loader code and I was wondering if the offset check below should be >= instead?

relocation.r_offset > relocated_functions[i]->native_section_start &&

Couldn't there be cases where the offset could be 0?