Vector35 / binaryninja-api

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

Armv7eb: LDR instructions not lifted correctly #3974

Closed mstmhsmt closed 1 year ago

mstmhsmt commented 1 year ago

It seems the value at 0x40375914 is interpreted as LITTLE endian. It should be 0x000003c0.

bad_ldr

BINARYNINJA Version: 3.2.3857 (Build ID ed11ebe2)

xusheng6 commented 1 year ago

I tested with the following code and the constant does get read correctly as big endian.

Screenshot 2023-05-11 at 3 27 53 PM

Also, I tried to disassemble the instruction f8dff000 and it does not dissemble properly in armv7eb. I tried to disassemble it in several other arm related arch and it all fails. Could you verify what is the arch of the function?

I am closing this issue for now since it is very likely that the function is having a different arch. However, please feel free to re-open it if you think I am wrong (I am not super good at arm tbh)