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

Validate size of entries before accessing members #132

Merged
merged 1 commit into from
Jan 20, 2024
Merged

Validate size of entries before accessing members #132

merged 1 commit into from
Jan 20, 2024

Conversation

Alan-Jowett
Copy link
Contributor

@Alan-Jowett Alan-Jowett commented Jan 19, 2024

When accessing relocation records and symbol records, validate the entry size against the expected type and fail if it doesn't match.

Resolves: #131

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
elfio/elfio_relocation.hpp Show resolved Hide resolved
@serge1 serge1 merged commit 182248f into serge1:main Jan 20, 2024
20 checks passed
@serge1
Copy link
Owner

serge1 commented Jan 20, 2024

Accepted. Thank you!

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.

Code doesn't check entry size before casting
3 participants