Merge "Fix range check"

This commit is contained in:
Andy McFadden 2013-04-29 18:22:25 +00:00 committed by Android (Google) Code Review
commit 5075b21e1a
1 changed files with 1 additions and 0 deletions

View File

@ -272,6 +272,7 @@ getarray
int _needed = 0;
params = (CTYPE *)getPointer(_env, params_buf, &_array, &_remaining, &_bufferOffset);
_remaining /= sizeof(CTYPE); // convert from bytes to item count
_needed = getNeededCount(pname);
// if we didn't find this pname, we just assume the user passed
// an array of the right size -- this might happen with extensions