Vector35 / binaryninja-api

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

Inaccurate identification of function parameters #5785

Open Qiu-Kite opened 1 month ago

Qiu-Kite commented 1 month ago

I'm adding a new instruction set where the function passing stack is aligned to 1 byte, and when passing a parameter of type uint8_t, Binary Ninja recognises the function parameter by default using 2 byte alignment, resulting in the parameter being recognised incorrectly. How can I solve this problem? I tried modifying function_type but it didn't work. FQBX9U 68J`H{ P5M}CP9{W As shown uint8_t are all aligned in 2 bytes and arg_3 is not used correctly

xusheng6 commented 1 month ago

Hi @Qiu-Kite , could you please share the binary with us to enable us to look at the issue further? If you do not wish to share publicly, you can join our slack and send the files in private: https://slack.binary.ninja/