Skip to content
Snippets Groups Projects
Unverified Commit d0ec19f9 authored by Ann Priestman's avatar Ann Priestman Committed by GitHub
Browse files

Merge pull request #2768 from sepinf-inc/#2723_fix

Fixes #2723: use default JNI NewStringUTF(utf8) as fallback to avoid missing whole directory tree
parents 5112db50 e35dac35
Branches
Tags
No related merge requests found
...@@ -482,7 +482,9 @@ TSK_RETVAL_ENUM TskAutoDbJava::createJString(const char * input, jstring & newJS ...@@ -482,7 +482,9 @@ TSK_RETVAL_ENUM TskAutoDbJava::createJString(const char * input, jstring & newJS
if (tsk_UTF8toUTF16((const UTF8 **)&source, (const UTF8 *)&source[input_len], &target, &target[input_len], TSKlenientConversion) != TSKconversionOK) { if (tsk_UTF8toUTF16((const UTF8 **)&source, (const UTF8 *)&source[input_len], &target, &target[input_len], TSKlenientConversion) != TSKconversionOK) {
free(utf16_input); free(utf16_input);
return TSK_ERR; // use default JNI method as fallback, fixes https://github.com/sleuthkit/sleuthkit/issues/2723
newJString = m_jniEnv->NewStringUTF(input);
return TSK_OK;
} }
/* /*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment