Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong offset check of relocated function? #510

Open
xfoukas opened this issue Jun 21, 2024 · 0 comments
Open

Wrong offset check of relocated function? #510

xfoukas opened this issue Jun 21, 2024 · 0 comments

Comments

@xfoukas
Copy link

xfoukas commented Jun 21, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant