Skip to content

fix for statically linked PPC binary with no .plt#46

Merged
ltfish merged 1 commit intoangr:masterfrom
ocean1:PPC_staticallylinked
Nov 14, 2016
Merged

fix for statically linked PPC binary with no .plt#46
ltfish merged 1 commit intoangr:masterfrom
ocean1:PPC_staticallylinked

Conversation

@ocean1
Copy link
Copy Markdown
Contributor

@ocean1 ocean1 commented Nov 14, 2016

this PPC binary is statically linked, and seems to not have a .plt section:
https://github.com/ctfs/write-ups-2016/tree/master/hitcon-ctf-2016/ppc/flame-150

loading the binary fails with:
File "/home/ocean/.venvironments/angr/local/lib/python2.7/site-packages/cle/backends/metaelf.py", line 78, in _load_plt stubs_table = resolver_stubs[0][0] - 16 * len(resolver_stubs) IndexError: list index out of range

just added a check on resolver_stubs to be non-empty

@ltfish
Copy link
Copy Markdown
Member

ltfish commented Nov 14, 2016

Looks good to me. Thanks!

@ltfish ltfish merged commit f686626 into angr:master Nov 14, 2016
@ocean1 ocean1 deleted the PPC_staticallylinked branch November 16, 2016 00:12
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.

2 participants