Skip to content

Commit

Permalink
Java-binding: remove crash on invalid String encoding.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: c29f8abdd4207eabf422c01ae67b5d1c73ff6ae8
  • Loading branch information
levlam committed Jan 28, 2018
1 parent 99c5bd9 commit afde0fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion td/tl/tl_jni_object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ static size_t get_utf8_from_utf16_length(const jchar *p, jsize len) {
}
}

LOG(FATAL) << "Receive wrong UTF-16 string";
// TODO wrong UTF-16, it is possible
return 0;
}
result += 1 + (cur >= 0x80) + (cur >= 0x800);
Expand Down

0 comments on commit afde0fd

Please sign in to comment.