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

Fix out of bounds access when increasing program header table #411

Merged
merged 1 commit into from
Oct 26, 2022

Conversation

Bo98
Copy link
Contributor

@Bo98 Bo98 commented Oct 10, 2022

We check i < rdi(hdr()->e_shnum) in the while loop but it was only done so after shdrs.at(i) was called, which will crash on out-of-bounds accesses.

@Bo98 Bo98 mentioned this pull request Oct 10, 2022
@Mic92 Mic92 merged commit 55d5db9 into NixOS:master Oct 26, 2022
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.

2 participants