You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With MEMORY_ARRAY mode off, everything works fine until the second to last line, the output of ctx.liftToPython(ctx.getSymbolicRegister(ctx.registers.rax)) is just:
But because MEMORY_ARRAY is off, r9 is no longer a symbolic value, the output of ctx.liftToPython(ctx.getSymbolicRegister(ctx.registers.rax)) is
ref_279=0x4# MOV operation
But the problem is, if I turn on MEMORY_ARRAY mode on, the output of ctx.liftToPython(ctx.getSymbolicRegister(ctx.registers.r9)) is this very complicated expression. Triton no longer knows that rax is just packet and instead the expression involves storing the bytes of packet and loading them back later on into rax.
Is it somehow possible to have rax just be packet, and r9 be select(..., packet + 0x18)? With memory array mode off, Triton was able to keep track that rax was packet, so I'd expect that it should be able to do that with memory array mode on too, and only r9 becomes a select expression?
The text was updated successfully, but these errors were encountered:
I'm executing some code inside Triton. The initial state is:
The code I'm executing is:
With
MEMORY_ARRAY
mode off, everything works fine until the second to last line, the output ofctx.liftToPython(ctx.getSymbolicRegister(ctx.registers.rax))
is just:But because
MEMORY_ARRAY
is off,r9
is no longer a symbolic value, the output ofctx.liftToPython(ctx.getSymbolicRegister(ctx.registers.rax))
isBut the problem is, if I turn on
MEMORY_ARRAY
mode on, the output ofctx.liftToPython(ctx.getSymbolicRegister(ctx.registers.r9))
is this very complicated expression. Triton no longer knows thatrax
is justpacket
and instead the expression involves storing the bytes ofpacket
and loading them back later on intorax
.Is it somehow possible to have
rax
just bepacket
, andr9
beselect(..., packet + 0x18)
? With memory array mode off, Triton was able to keep track thatrax
waspacket
, so I'd expect that it should be able to do that with memory array mode on too, and onlyr9
becomes aselect
expression?The text was updated successfully, but these errors were encountered: