1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-05 16:55:50 +03:00

Whoops, one AP_MAX_REG_MATCH not caught.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1467719 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Guenter Knauf
2013-04-14 02:50:19 +00:00
parent 97e8153a9c
commit 0e18686c12

View File

@@ -928,7 +928,7 @@ static int lua_ap_regex(lua_State *L)
}
lua_newtable(L);
for (i = 0; i <= regex.re_nsub && i <= AP_MAX_REG_MATCH; i++) {
for (i = 0; i <= regex.re_nsub && i <= MODLUA_MAX_REG_MATCH; i++) {
lua_pushinteger(L, i);
if (matches[i].rm_so >= 0 && matches[i].rm_eo >= 0)
lua_pushstring(L,