Dexer icon indicating copy to clipboard operation
Dexer copied to clipboard

Crash InstructionReader on somes obfuscated dex

Open naviHaRpY opened this issue 3 years ago • 1 comments

Hi! On somes obfuscated dex (see attach) InstructionReader is crash. If payloads of pseudo-instructions inject between normal instructions in body. This case is not taken in your inplementation. But the real Dalvik VM normal process this code. Test2 Thank you! classes3_mod.zip

naviHaRpY avatar Aug 24 '21 09:08 naviHaRpY

Possible implementation for this. Note: is works only for cases when payload-data follow after instruction-owner, else throw exception. For all cases, more modifications are required, but they are easy to implement. Sorry for the very bad English and typos. InstructionReader.zip

naviHaRpY avatar Aug 24 '21 21:08 naviHaRpY