anestisb / vdexExtractor

Tool to decompile & extract Android Dex bytecode from Vdex files
Apache License 2.0
1k stars 215 forks source link

Malformed Vdex file #40

Closed russel5 closed 5 years ago

russel5 commented 5 years ago

Hello. I'm have a problem with decompile com.sonymobile.settings.shakecontrol.vdex file on latest version of vdexextractor.

[ERROR] Verifier dependencies section points past the end of file (234 + c > 23d) [ERROR] Malformed Vdex file [ERROR] Failed to process Dex files - skipping 'framework/oat/arm64/com.sonymobile.settings.shakecontrol.vdex'

If i'm using version 0.4.1 all works, i can decompile this file and it work. I can deodex classes.dex from this file via baksmali. Why latest version of vdexextractor show me that error?

anestisb commented 5 years ago

Can you upload the problematic vdex somewhere so I can download and investigate?

Since the boundaries only diff by one byte, there is a good chance that there is peculiar bug that triggers in rare cases.

russel5 commented 5 years ago

@anestisb here you go https://drive.google.com/open?id=1xajw55QFrEwAJOtW7IN3sHkhddxR6Ef5

anestisb commented 5 years ago

Should be fixed in https://github.com/anestisb/vdexExtractor/commit/99566f200d198530ba01f5e8a6318be4462c9953. Can you please check?

russel5 commented 5 years ago

Yep, now all works. Thanks. Thread can be closed.

russel5 commented 5 years ago

Sorry bro, but not fixed. Have another problem with another file [ERROR] [11247] 2018/10/15 13:20:46 (jni/../src/vdex/vdex_006.c:168 vdex_006_SanityCheck) Verifier dependencies section points past the end of file (1d0 + 0 > 1d0) [ERROR] [11247] 2018/10/15 13:20:46 (jni/../src/vdex/vdex_backend_006.c:340 vdex_backend_006_process) Malformed Vdex file [ERROR] [11247] 2018/10/15 13:20:46 (jni/../src/vdexExtractor.c:257 main) Failed to process Dex files - skipping 'tcmiface.vdex' I think 1d0 + 0 can't be > that 1d0 :) This file at the same place that previous

anestisb commented 5 years ago

Should be fixed in https://github.com/anestisb/vdexExtractor/commit/99566f200d198530ba01f5e8a6318be4462c9953. Can you check please?

russel5 commented 5 years ago

Ok now, deodex full firmware - no more errors. Thanks.