-
Notifications
You must be signed in to change notification settings - Fork 560
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
elf: fix parsing of symtab from viv data #1721
Conversation
def from_Elf(cls, ElfBinary) -> Optional["SymTab"]: | ||
endian = "<" if ElfBinary.getEndian() == 0 else ">" | ||
bitness = ElfBinary.bits | ||
def from_viv(cls, elf: Elf.Elf) -> Optional["SymTab"]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated:
- name for consistency
- parameter name for pep8 (lowercase)
- type hint for mypy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice, thanks!
The failing tests are relevant to the the symbol extraction. The I'll take a further look at this in a while. |
ah, good call that the tests are failing 🤦🏼 good thing we have those! tbh, i dont understand how the existing logic worked, except perhaps by random chance. i'll also dig into the failing tests and suggest further fixes. |
with 737fab7 tests are working for me again locally. |
awaiting for tests to pass in CI and then i'll merge. |
closes #1704
also cleans up naming and type hints
Checklist