fix out-of-bounds array access
svn: r3305
This commit is contained in:
parent
a6a9f17294
commit
95cb36b1dc
|
@ -2125,6 +2125,7 @@ Scheme_Object *scheme_check_accessible_in_module(Scheme_Env *env, Scheme_Object
|
||||||
|
|
||||||
if (pos) {
|
if (pos) {
|
||||||
if (env->module->provide_protects
|
if (env->module->provide_protects
|
||||||
|
&& (SCHEME_INT_VAL(pos) < env->module->num_provides)
|
||||||
&& env->module->provide_protects[SCHEME_INT_VAL(pos)]) {
|
&& env->module->provide_protects[SCHEME_INT_VAL(pos)]) {
|
||||||
if (_protected)
|
if (_protected)
|
||||||
*_protected = 1;
|
*_protected = 1;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user