Control flow wrong for switch statements #15
Labels
android
Issue about Android (Dex, Smali, etc.)
binaryninja
Issue about Binary Ninja integration
broken
Something should be working but isn't
major
Big things that need to be fixed before this is "good"
packed-switch and sparse-switch instructions do not have branches set. Methods with these instructions will not have the full control flow graph, and will probably not disassemble completely.
More than two branches can't be added to an
InstructionInfo
object inget_instruction_info
: https://github.com/CarveSystems/banjo/blob/bd07db6c3a8de9b4eff56d381c581909b0ea2b05/architecture.py#L99-L108According to rss, the right way to do this is to use
LLIL_JUMP_TO
in LLIL. I couldn't figure out how to do this. My best attempt (does not work):https://github.com/CarveSystems/banjo/blob/bd07db6c3a8de9b4eff56d381c581909b0ea2b05/architecture.py#L170-L174
The text was updated successfully, but these errors were encountered: