-
-
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
Bad assembly generated on arm 32bits #21251
Comments
Can you share the binary or provide a way to repro without it?
|
It's at the start of main of this small ctf |
For fine here:
|
oh well its happening if i do |
I always do |
Its usually not recommended to do full analysis because of bugs like this that happen when combining different analysis at once. But it's a common practice and the default for most people. So there's nothing wrong with it, but it's usually good to try alternative ways to analyze the code to understand better the cause of the bug. i have some separate patches that fix and improve other issues i found in this binary, so i''ll push it to the testsuite and improve the analysis based on it. thanks. i'll let you know when i merge the fixing pr |
Noted. I'll change this habit. |
Fixed here #21257 ill close the issue when merged |
that fix breaks other tests, but the logic behind this code is wrong . more summer of code crap that needs to be rewritten. i will try to massage the patch and try to get something working soon |
I'm currently using |
Environment
Description
Assembly code generated by r2 for instruction 14300be5 is wrong (bad offset)
The comment is good, but not the assembly.
Test
Code on radare2
![Capture d'écran_20230115_004011](https://user-images.githubusercontent.com/122721783/212532984-82cc39a7-39d7-44be-b24f-5d793ca27e51.png)
Code on gdb
![Capture d'écran_20230115_004359](https://user-images.githubusercontent.com/122721783/212533001-25db804e-cdc2-4ca5-adbd-93b5746859db.png)
Disassembly expected
![Capture d’écran 2023-01-15-1](https://user-images.githubusercontent.com/122721783/212533020-dbebbae2-78e0-4765-ba1f-ac337559f9ae.png)
The text was updated successfully, but these errors were encountered: