Vector35 / binaryninja-api

Public API, examples, documentation and issues for Binary Ninja
https://binary.ninja/
MIT License
887 stars 198 forks source link

Mach-O thumb entry point issue #531

Closed withzombies closed 7 years ago

withzombies commented 7 years ago

I think the Mach-O loader gets the entry point wrong for thumb binaries.

I made a small armv7/thumb2 binary and loaded it into binja. It's entry point is at 0BEC8, which gets created as thumb and labeled main(). Additionally, 0BEC9 is created and marked as thumb, disassembled misaligned. Thumb disassembly has a minimum alignment of 2, so 0BEC9 should never be a valid instruction.

I've attached the binary.

test_thumb.zip

D0ntPanic commented 7 years ago

Fixed in dev