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

vm unpackString does not tolerate invalid unicode #9

Open
swdunlop opened this issue Jun 9, 2012 · 0 comments
Open

vm unpackString does not tolerate invalid unicode #9

swdunlop opened this issue Jun 9, 2012 · 0 comments

Comments

@swdunlop
Copy link
Owner

swdunlop commented Jun 9, 2012

Due to how Python handles unicode, vm.unpackString can fail with decoding errors when invalid codepoints are received from Dalvik. For forensic use, this is terrible behavior.

To support this, a wrapper class should be written that preserves this data as a bytestring and presents Python unicode strings with omitted invalid codepoints as a str to prevent dependent functions from throwing exceptions when operating on derived data.

See also how vm unpacks chr's:

9ae4bd2#commitcomment-1426109

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

No branches or pull requests

1 participant