Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash InstructionReader on somes obfuscated dex #13

Open
naviHaRpY opened this issue Aug 24, 2021 · 1 comment
Open

Crash InstructionReader on somes obfuscated dex #13

naviHaRpY opened this issue Aug 24, 2021 · 1 comment

Comments

@naviHaRpY
Copy link

naviHaRpY commented Aug 24, 2021

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
Copy link
Author

naviHaRpY commented Aug 24, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants