diff options
author | 2014-04-18 10:52:15 -0700 | |
---|---|---|
committer | 2014-04-18 14:56:35 -0700 | |
commit | 11b707616800e08891f6b610be90033acda8ffd0 (patch) | |
tree | ee82737e77f4ee0b60ae6aed1c9544181cc98faa /java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java | |
parent | 7cb0cc1b29ebca17933ac4b7fabc80f04d17a767 (diff) | |
download | latinime-11b707616800e08891f6b610be90033acda8ffd0.tar.gz latinime-11b707616800e08891f6b610be90033acda8ffd0.tar.xz latinime-11b707616800e08891f6b610be90033acda8ffd0.zip |
Fix a bug for counting code points in WordComposer.java
This bug threw an ArrayIndexOutOfBoundsException when the word length
is 49 (maxSize + 1) when calling StringUtils.copyCodePointsAndReturnCodePointCount(...)
in the same function. This bug is discovered by running SKETCH.
The intent is to count the code points from index 0 to index i (included).
The original code only counted the code points from index 0 to index (i-1).
Bug: 13969542
Change-Id: Idbf596aba2379ba552dbe580c83c42044d505aaf
Diffstat (limited to 'java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java')
0 files changed, 0 insertions, 0 deletions