Grk26 / androguard

Automatically exported from code.google.com/p/androguard
Apache License 2.0
0 stars 0 forks source link

Opcodes switches for rsub-int/lit8 instruction #142

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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 8 years ago
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