-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong variables name substitution? #17637
Comments
@alex-curiou Could you provide the exact binary where this happen? It would help reproducing the issue, thanks. |
Here is the binary, so for example: NOTE: I've reported not correct ABI, so changed from arm to arm64-v8a |
@trufae there is probably something wrong in The original instruction is:
So, if I get it right, x29 will be the address of |
yes this is wrong. and this is what IDA does. and this is what i was complaining some days ago because of a change in the disasm. The substituion is wrong because it should even replace the add for a mov to make it meaningful that way. Obviously having the var that is accessed is nice, but i think it shouldnt be shown that way. It was shown as a comment when using esil before iirc. but its always better to have this replaced inside the instruction. but i dont think this is a good way to render that. And ive been always trying to avoid mimic IDA's disasm which is full of lies like this that make me feel confused when comparing disassemblers |
That is not a canonical way of showing disassembly, so it is a bit hard to understand and will lead to creation of a our own dialect. |
An option for what? this disassembly is wrong. it should be fixed. i was stating that IDA is doing things like this, and im against inventing instructions. I dont think r2 community is closed at all. I dont want such thing, not even as an option. because its misleading. |
Could someone provide a snapshot of what is IDA showing exactly? |
Ok, so |
In the coming several weeks I have really busy days (( |
@alex-curiou no problem ;) I took the liberty to update the description of the issue. |
Of course, |
i have started to work on fixing this issue but its breaking abi, so wont merge the PRs until we start the abi-breaking stage, there are several more issues related to variable analysis right now, so im trying to collect them to have tests for all of them |
Work environment
Expected behavior
No variable substitution should happen at all in the third line. This behaviour, btw, is also in line with IDA.
Actual behavior
Steps to reproduce the behavior
Binary to test
Provided in #17637 (comment)
Additional Logs, screenshots, source-code, configuration dump, ...
The text was updated successfully, but these errors were encountered: