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

use correct .shstrtab section name when relocating it #894

Merged
merged 1 commit into from
Apr 15, 2023

Conversation

kilograham
Copy link
Contributor

the code std::string sec_name = binary_->shstrtab_name(); was referencing the section right after it was deleted, leading to unexpected results (possibly returning ".shstrtab" by default, but also returning a different section's name if sections have been added).

@romainthomas
Copy link
Member

Nice catch! Thank you.

@romainthomas romainthomas merged commit 901b798 into lief-project:master Apr 15, 2023
2 of 3 checks passed
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.

None yet

2 participants