Skip to content

Possible JNI crash due to Unicode emoji characters #359

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

Open
brody4hire opened this issue Oct 8, 2015 · 1 comment
Open

Possible JNI crash due to Unicode emoji characters #359

brody4hire opened this issue Oct 8, 2015 · 1 comment
Labels

Comments

@brody4hire
Copy link
Contributor

sqlcipher/android-database-sqlcipher#199 reports that SQLCipher for Android crashes when reading Unicode emoji characters, due to the following bug on Android 1.X-5.X: https://code.google.com/p/android/issues/detail?id=81341

The following code (in Java) reproduces the bug on SQLCipher for Android:

SQLiteStatement st = database.compileStatement("SELECT '\uD83D\uDE03'"); // SMILING FACE (MOUTH OPEN)
String res = st.simpleQueryForString();

I expect to see the same problem in the Android version of this plugin since it also uses JNI through the Android-sqlite-native-driver library. I wonder if this will affect the built-in Android database classes when using androidDatabaseImplementation: 2 in the sqlitePlugin.openDatabase() options.

The bug seems to be fixed on Android 6.0.

Other references:

@mdvacca
Copy link

mdvacca commented Oct 19, 2015

Hi @brodybits, thanks for testing this, Is there any plan to fix this bug for versions previous to Android 6.0?

Thanks,
David.

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

No branches or pull requests

2 participants