Skip to content

Fix several issues related to processing of malformed ELF files #16

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

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

keddad
Copy link

@keddad keddad commented Apr 12, 2025

Hello! I've been doing some fuzzing recently, and found several issues related to processing malformed ELF files. Those are pretty much all out-of-bound reads, which mostly lead to crashes.

I've written several fixes for these. Where possible, I improve existing bounds checks, so "slightly" broken ELFs still can be loaded. In other places, I throw std::runtime_error() to avoid segfault.

I also added some missing includes, so the app compiles with more modern compilers.

I've also noticed that tests (elfparser-cli-ng_test) are broken. They are already broken on current master branch, so it's not caused by me changes. I'm not sure how to best fix those, so I just left them as-is.

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

Successfully merging this pull request may close these issues.

1 participant