noushadali / androguard

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

FillArrayExpression object creation failed #152

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I am trying to decompiling attached dex file

What is the expected output? What do you see instead?
  File "/home/tmv/PycharmProjects/web_yodda/analyzer/dexter/dexanalyzer.py", line 48, in __init
    self.machine.process()
  File "/home/tmv/PycharmProjects/web_yodda/analyzer/dexter/androguard/decompiler/dad/decompile.py", line 298, in process
    dvclass.process()
  File "/home/tmv/PycharmProjects/web_yodda/analyzer/dexter/androguard/decompiler/dad/decompile.py", line 200, in process
    self.process_method(meth)
  File "/home/tmv/PycharmProjects/web_yodda/analyzer/dexter/androguard/decompiler/dad/decompile.py", line 189, in process_method
    meth.process()
  File "/home/tmv/PycharmProjects/web_yodda/analyzer/dexter/androguard/decompiler/dad/decompile.py", line 97, in process
    graph = construct(self.start_block, self.var_to_name, self.exceptions)
  File "/home/tmv/PycharmProjects/web_yodda/analyzer/androguard/decompiler/dad/graph.py", line 325, in construct
    child_node = build_node_from_block(child_block, vmap, gen_ret)
  File "/home/tmv/PycharmProjects/web_yodda/analyzer/androguard/decompiler/dad/basic_blocks.py", line 320, in build_node_from_block
    lins.append(_ins(ins, vmap))
  File "/home/tmv/PycharmProjects/web_yodda/analyzer/androguard/decompiler/dad/opcode_ins.py", line 403, in fillarraydatapayload
    return FillArrayExpression(None)
TypeError: __init__() takes exactly 3 arguments (2 given)

What version of the product are you using? On what operating system?
androguard 1.9, python 2.7.3 on ubuntu 12.04 LTS 64-bit

Please provide any additional information below.
Looks like the function "fillarraydatapayload" is incorrect and creation the 
instance of FillArrayExpression was written with a mistake

def fillarraydatapayload(ins, vmap):
    logger.debug('FillArrayDataPayload : %s', ins.get_output())
    return FillArrayExpression(None)

Original issue reported on code.google.com by satw...@gmail.com on 18 Feb 2014 at 10:09

Attachments: