diff options
author | Seigo Nonaka <nona@google.com> | 2018-07-19 16:22:02 -0700 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2018-08-16 16:40:09 +0000 |
commit | 821e9bd5cc2be4b3210cb0226e40ba0f42b51aed (patch) | |
tree | 2ceb1f27ab1afcc01a43cbdf39e07fba01b8e692 /graphics/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | f45705cb19b14ac20a0af7622d8628b4a25ebf6b (diff) |
Fix crash during cursor moving on BiDi text
The crash was introduced by Ib66ef392c19c937718e7101f6d48fac3abe51ad0
The root cause of the crashing is requesting out-of-line access for the
horizontal width. This invalid access is silently ignored by
TextLine#measure() method but new implementation end up with out of
bounds access.
To makes behavior as old implementation, calling getHorizontal instead
of accessing measured result array.
Bug: 78464361, 111580019
Test: Manually done
Change-Id: I5c5778718f6b397adbb1e4f2cf95e9f635f6e5c8
(cherry picked from commit 960647d582911ae7ab8b9491097898e6c313aaf1)
Merged-In: I5c5778718f6b397adbb1e4f2cf95e9f635f6e5c8
(cherry picked from commit a1076fdaa54ebf56bb32bea43fb278f7470ff307)
Diffstat (limited to 'graphics/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions