Lines 211-217
Link Here
|
211 |
if (args) |
211 |
if (args) |
212 |
as = (*e)->GetArrayLength(e, args); |
212 |
as = (*e)->GetArrayLength(e, args); |
213 |
if (env) |
213 |
if (env) |
214 |
es = (*e)->GetArrayLength(e, args); |
214 |
es = (*e)->GetArrayLength(e, env); |
215 |
if (as > (MAX_ARGS_SIZE - 1) || es > (MAX_ENV_SIZE - 2)) { |
215 |
if (as > (MAX_ARGS_SIZE - 1) || es > (MAX_ENV_SIZE - 2)) { |
216 |
TCN_FREE_CSTRING(progname); |
216 |
TCN_FREE_CSTRING(progname); |
217 |
return APR_EINVAL; |
217 |
return APR_EINVAL; |
Lines 228-234
Link Here
|
228 |
if (es) { |
228 |
if (es) { |
229 |
for (i = 0; i < es; i++) { |
229 |
for (i = 0; i < es; i++) { |
230 |
jstring str = (*e)->GetObjectArrayElement(e, env, i); |
230 |
jstring str = (*e)->GetObjectArrayElement(e, env, i); |
231 |
s_env[i+1] = tcn_get_string(e, str); |
231 |
s_env[i] = tcn_get_string(e, str); |
232 |
(*e)->DeleteLocalRef(e, str); |
232 |
(*e)->DeleteLocalRef(e, str); |
233 |
} |
233 |
} |
234 |
#ifdef WIN32 |
234 |
#ifdef WIN32 |