OSDN Git Service

Add better index checks for AndroidCharacter.mirror
authorKenny Root <kroot@google.com>
Wed, 17 Feb 2010 16:25:47 +0000 (08:25 -0800)
committerKenny Root <kroot@google.com>
Wed, 17 Feb 2010 16:46:04 +0000 (08:46 -0800)
commit073a3d56ea7505126469dd9ed4c20a7a8923690d
tree481474bfe4afed39f4fba9fa8b73984c12701c79
parenta4437fc93a993c7ab326b592d22c05be2f11b543
Add better index checks for AndroidCharacter.mirror

Fix potential invalid array access if start index is before the
beginning of the array or start + count is past the end of the array.
Update Javadoc for mirror to reflect the usage of "start" and "count".

Change-Id: I7e596de8eae5c518a2b4ff0d28604bd9c59f9d9d
core/java/android/text/AndroidCharacter.java
core/jni/android_text_AndroidCharacter.cpp