diff options
author | Raph Levien <raph@google.com> | 2014-05-14 15:46:47 -0700 |
---|---|---|
committer | Raph Levien <raph@google.com> | 2014-05-14 15:46:47 -0700 |
commit | 8d2aa199774f50256617351bf9caaaef59d47c59 (patch) | |
tree | ff00629750752b681be8e19c6a799e038e7640bc /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | fa28b984474204ce918370fb249bfab8870140b6 (diff) |
Fix android.text.cts.TextUtilsTest#testRegionMatches
The CTS test expects an ArrayIndexOutOfBounds exception when passing in
an unreasonably large value for len. Since the actual implementation was
causing an integer overflow, we were getting a different exception.
Since integer overflow is potentially dangerous, this patch tests for it
and throws an exception explicitly.
Change-Id: I0420c06185d33d130853861d25d4f65b06fe0dfa
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions