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

Make ELF symbol dict accept bytes #1973

Merged
merged 2 commits into from Apr 20, 2022
Merged

Conversation

alanyee
Copy link
Contributor

@alanyee alanyee commented Oct 1, 2021

Pwntools Pull Request

Resolves #1951 DynElf symbol lookup uses string as key for a string-key dictionary now

@Arusekk Arusekk linked an issue Jan 28, 2022 that may be closed by this pull request
@Arusekk
Copy link
Member

Arusekk commented Jan 28, 2022

Shouldn't we use bytes where possible to avoid mistakes? The function could convert all the strings to bytes internally, and just accept strings as an alternative way of access.

alanyee and others added 2 commits April 20, 2022 11:41
DynElf symbol lookup uses bytes as key

Fixes Gallopsled#1951

Co-authored-by: Arusekk <arek_koz@o2.pl>
@Arusekk Arusekk enabled auto-merge (squash) April 20, 2022 09:44
@Arusekk Arusekk changed the title DynElf symbol lookup uses string as key Make ELF symbol dict accept bytes Apr 20, 2022
@Arusekk Arusekk merged commit c3894c2 into Gallopsled:stable Apr 20, 2022
@alanyee alanyee deleted the patch-2 branch April 20, 2022 16:09
gogo2464 pushed a commit to gogo2464/pwntools that referenced this pull request Sep 10, 2023
DynElf symbol lookup uses bytes as key

Fixes Gallopsled#1951

Co-authored-by: Arusekk <arek_koz@o2.pl>
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.

DynElf symbol lookup uses bytes as key in a string-keyed dictionary.
2 participants