Merge "Fix range check"
This commit is contained in:
commit
5075b21e1a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user