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

error while post processing an elf #3

Open
CySHell opened this issue Jun 25, 2019 · 1 comment
Open

error while post processing an elf #3

CySHell opened this issue Jun 25, 2019 · 1 comment

Comments

@CySHell
Copy link
Owner

CySHell commented Jun 25, 2019

Traceback (most recent call last):
File "C:\Program Files\Vector35\BinaryNinja\plugins..\python\binaryninja\plugin.py", line 96, in default_action
action(view_obj)
File "C:\Users\user\AppData\Roaming\Binary Ninja\plugins\Binary Ninja - BV2Neo4j_init
.py", line 24, in export_bv
binja_graph.bv_extract()
File "C:\Users\user\AppData\Roaming\Binary Ninja\plugins\Binary Ninja - BV2Neo4j\CSV_Processing\BuildCSV.py", line 65, in bv_extract
post_processor.run_all()
File "C:\Users\user\AppData\Roaming\Binary Ninja\plugins\Binary Ninja - BV2Neo4j\CSV_Processing\PostProcessing.py", line 22, in run_all
self.add_symbols()
File "C:\Users\user\AppData\Roaming\Binary Ninja\plugins\Binary Ninja - BV2Neo4j\CSV_Processing\PostProcessing.py", line 58, in add_symbols
symbol_mapping.update({str(symbol.address): symbol})
AttributeError: 'list' object has no attribute 'address'

ping.zip

@CySHell
Copy link
Owner Author

CySHell commented Jun 26, 2019

This is because an elf symbol might contain 2 records, one for the imported function and one for the external definition:

bv.symbols['connect']
[<SymbolType.ImportedFunctionSymbol: "connect" @ 0x17e8>, <SymbolType.ExternalSymbol: "connect" @ 0x333e0>]

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