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
Segment modified MOV statement ignored by decompiler #4393
Comments
There is something weird going on with segment referenced addresses in general and constants too! One example I have recently seen is a correctly defined function
But the decompilation shows: Others involve near references to function addresses that should use the code segment |
@caheckman any advances/insights/timeline? |
@ryanmkurtz @caheckman any update??? |
I must defer to @caheckman |
In dragon_FUN_10d0_0000.zip example, the structure members of |
@caheckman @ryanmkurtz any progress?????? |
The |
@caheckman @ryanmkurtz Okay, thanks. Sorry for badgering. |
Here's another GOOD example whereby just the I have placed commented code throughout generated |
Having thought more about this, the two following comments of what the code should produce How can this be achieved? |
Describe the bug
I have disassembly that is modifying memory in a segment (
ES
) other than the default (DS
):However the equivalent decompilation is turning the address reference
0x4f52
into a memory area pointed to by the combination of this address and the value stored in the default data (DS
) segment instead of using the overriddenES
segment producing*(byte *)((int)"LMEXTERN" + 8 + (uint)local_b) = local_b & 0x7f;
When I forcibly modify the
DS
register to11f8
the output becomes*(byte *)((int)BYTE_ARRAY_11f8_4f62 + (uint)local_b) = local_b & 0x7f;
This means that the decompiler is ignoring the register override that is correctly interpreted by the disassembly process.
To Reproduce
Steps to reproduce the behavior:
Debug Function Decompilation
menu output (see attachment)Expected behavior
Segment overrides respected through the complete disassembly to decompilation process.
Attachments
Output from
Debug Function Decompilation
menudragon_FUN_1100_0823.zip
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: