ivision-research / banjo

Android Dex disassembler and Binary Ninja plugin
MIT License
52 stars 6 forks source link

Binary Ninja hangs when setting all registers #13

Open austin-ralls-cs opened 4 years ago

austin-ralls-cs commented 4 years ago

Dalvik technically supports 65536 registers, but Binary Ninja hangs when more than a thousand or so RegisterInfos are added. The current workaround is to just set 256 of them.

Also, I don't know what setting Architecture.regs actually does.

https://github.com/CarveSystems/banjo/blob/bd07db6c3a8de9b4eff56d381c581909b0ea2b05/architecture.py#L27

austin-ralls-cs commented 4 years ago

Related code: https://github.com/CarveSystems/banjo/blob/bd07db6c3a8de9b4eff56d381c581909b0ea2b05/android/smali.py#L355