-
Notifications
You must be signed in to change notification settings - Fork 567
fix for issue #199 "JNI crash when reading russian / emoji character using simpleQueryForString" #206
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
fix for issue #199 "JNI crash when reading russian / emoji character using simpleQueryForString" #206
Conversation
Hello @tnt-medallia Thanks for your recent work on SQLCipher for Android. Before reviewing and potentially merging we need to have a contributor agreement on file. If you and your employer could review the "Entities" CLA, we'd appreciate it. Then, just send us an email to [email protected] and let us know the names and email addresses of your employer, etc, who will sign the document, and we'll send it over for electronic signature. Once we have a CLA in place we can perform further review and testing. Thanks! |
stephen, please contact thanks, On Fri, Dec 4, 2015 at 7:41 AM, Stephen Lombardo [email protected]
|
@tnt-medallia thanks for the information, I've forwarded a copy over for review. |
when might we expect an update on this? |
Hello @tnt-medallia we received the contributor agreement yesterday, so we'll start looking at this soon. Thanks for your patience! |
Thank you for submitting a pull request. Just a few quick comments after taking a look at the pull request. We generally prefer to include separate unit tests that execute changes such as this within the SQLCipher for Android test suite, would you mind creating a few tests cases that exercise these changes? Should a client developer on the Java side check for a return value of |
nick, you wrote:
before i started the fix someone created a unit test for this bug in the you wrote:
from my research it seems that this value is used in the unicode world terry On 12/14/2015 01:12 PM, Nick Parker wrote:
|
Guys, I had already added a test for the issue in bug #199 in UnicodeTest.java#L22-L28 (see sqlcipher/sqlcipher-android-tests/pull/10: if (android.os.Build.VERSION.SDK_INT >= 23) { // Android M
// This will crash on Android releases 1.X-5.X due the following Android bug:
// https://code.google.com/p/android/issues/detail?id=81341
SQLiteStatement st = database.compileStatement("SELECT '\uD83D\uDE03'"); // SMILING FACE (MOUTH OPEN)
String res = st.simpleQueryForString();
if (!res.equals("\uD83D\uDE03")) return false;
} This test case would crash on Android 5 (or earlier) if the |
@tnt-medallia @brodybits, Ok, excellent - thanks for the quick response! |
what is the status of this? |
Hello @tnt-medallia, We plan to merge this into the master branch, it will then be released publicly following our next mainline SQLCipher release. Thanks! |
this fix prevents utf crash by converting text to utf16
this change is done by terry turner on behalf of my employer, medallia, inc.