commit | 42137d2e72cebb41f70c4a306877587fd0ea8c20 | [log] [tgz] |
---|---|---|
author | Andy McFadden <fadden@android.com> | Thu Apr 25 15:58:25 2013 -0700 |
committer | Andy McFadden <fadden@android.com> | Thu Apr 25 15:58:25 2013 -0700 |
tree | 75fba8e034ebd849fb605fb3ebd23685db4bbf59 | |
parent | dfc11ac5c2b1b2d4077eaa268a068d18bde36420 [diff] |
Fix range check The getarray() function checks to see if there's enough room in the buffer, but it's using a byte count for the available size and a possibly non-byte count for the space required. Dividing down by the unit size corrects the problem. Bug 8713753 Change-Id: Id42c0df65c3233dcc5f76d05e229f7d40d4c1f99