Opcodes switches for rsub-int/lit8 instruction
Opened this issue · 1 comments
GoogleCodeExporter commented
What steps will reproduce the problem?
1. Decompile a binary containing the rsub-int/lit8 instruction
What is the expected output? What do you see instead?
The registers should be interpreted in reverse order. The decompiled code will
yield the negative value of the correct value.
What version of the product are you using? On what operating system?
Androguard 1.5, Python 2.7, Mac OS X 10.8.4
Please provide any additional information below.
Probably fixed by exchanging operands in
https://code.google.com/p/androguard/source/browse/androguard/decompiler/dad/opc
ode_ins.py#1677
I have not tested this fix.
Original issue reported on code.google.com by flo...@gmail.com
on 22 Oct 2013 at 3:01
GoogleCodeExporter commented
Please see
https://code.google.com/r/floort-fix-rsub-int-lit8/source/diff?spec=svn12532ee3a
a9388a4ddfafdd0686671954912befd&r=12532ee3aa9388a4ddfafdd0686671954912befd&forma
t=side&path=/androguard/decompiler/dad/opcode_ins.py
Original comment by flo...@gmail.com
on 17 Aug 2014 at 9:58