DonnyBrasco25 / androguard

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

Problem with DalvikFormat save() #156

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Download either crackme_dexlabs_patch or create_invalid_apk
2. Run the script with any apk

Im running an Ubuntu 13.10 64 bit, reinstalled androguard from mercury 
yesterday so i suppose it's the last version.

Traceback (most recent call last):
  File "crackme.py", line 58, in <module>
    new_dex = vm.save()
  File "/androguard/androguard/core/bytecodes/dvm.py", line 7423, in save
    length = i.get_length()
  File "/androguard/androguard/core/bytecodes/dvm.py", line 511, in get_length
    return len(self.get_raw())
  File "/androguard/androguard/core/bytecodes/dvm.py", line 508, in get_raw
    return self.get_obj()
  File "/androguard/androguard/core/bytecodes/dvm.py", line 481, in get_obj
    self.data_off = self.data_off_obj[0].get_off()
AttributeError: CodeItem instance has no attribute '__getitem__'

Original issue reported on code.google.com by jmrina...@gmail.com on 8 Apr 2014 at 3:05