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

elf analyzer assumes elf is unpacked when running analyzer #475

Open
dannyp303 opened this issue Jun 12, 2024 · 0 comments
Open

elf analyzer assumes elf is unpacked when running analyzer #475

dannyp303 opened this issue Jun 12, 2024 · 0 comments

Comments

@dannyp303
Copy link
Collaborator

If you identify and then analyze an elf without unpacking, these lines will throw an error since the children don't exist.

elf_header = await resource.get_only_descendant_as_view(
ElfHeader, r_filter=ResourceFilter.with_tags(ElfHeader)
)
elf_basic_header = await resource.get_only_descendant_as_view(
ElfBasicHeader, r_filter=ResourceFilter.with_tags(ElfBasicHeader)
)
return ProgramAttributes(
elf_header.get_isa(),
None,
elf_basic_header.get_bitwidth(),
elf_basic_header.get_endianness(),
None,
)

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

No branches or pull requests

1 participant