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
incorrect EFLAGS value #463
Comments
Actually, |
Could there be a specific function to fill the EFLAGS register with the concretized value of the concatenated flags? |
mmmh just checked right now and >>> setArchitecture(ARCH.X86)
>>> inst1 = Instruction('\xb8\xff\xff\x00\x00')
>>> inst2 = Instruction('\xbb\xff\xff\x00\x00')
>>> inst3 = Instruction('\x21\xd8')
>>> processing(inst1)
True
>>> processing(inst2)
True
>>> processing(inst3)
True
>>> inst1
0: mov eax, 0xffff
>>> inst2
0: mov ebx, 0xffff
>>> inst3
0: and eax, ebx
>>> getConcreteRegisterValue(REG.EFLAGS)
4L |
Is it ok? Can we close? |
Yes. |
There are 2 bits that should always be set: These must always be 1. Theoretically bit 9 could be cleared with a CLI instruction but (at least in a user mode program) it results in a crash. It's possible to manually set the correct value but maybe the default value in Triton should reflect this observation. |
When I check the EFLAGS value in a debugger I get 0x202.
The text was updated successfully, but these errors were encountered: