commit | 8d2aa199774f50256617351bf9caaaef59d47c59 | [log] [tgz] |
---|---|---|
author | Raph Levien <raph@google.com> | Wed May 14 15:46:47 2014 -0700 |
committer | Raph Levien <raph@google.com> | Wed May 14 15:46:47 2014 -0700 |
tree | ff00629750752b681be8e19c6a799e038e7640bc | |
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