From 6e231373bc1c09955a89b4ab8be2d98dde58663a Mon Sep 17 00:00:00 2001 From: Bradley Nicholes Date: Fri, 16 Jul 2004 20:30:43 +0000 Subject: [PATCH] Allocate memory from the temp_pool rather than the stack to avoid blowing fixed length stacks while evaluating nested includes git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104310 13f79535-47bb-0310-9956-ffa450edef68 --- os/netware/pre_nw.h | 3 +++ server/config.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/os/netware/pre_nw.h b/os/netware/pre_nw.h index 910ab57cda..0f2a9327a9 100644 --- a/os/netware/pre_nw.h +++ b/os/netware/pre_nw.h @@ -60,6 +60,9 @@ /* Allow MOD_AUTH_DBM to use APR */ #define AP_AUTH_DBM_USE_APR +/* Restrict the number of nested includes */ +#define AP_MAX_INCLUDE_DEPTH 48 + #endif diff --git a/server/config.c b/server/config.c index 277aaef30a..5b48492644 100644 --- a/server/config.c +++ b/server/config.c @@ -1100,7 +1100,7 @@ AP_DECLARE(const char *) ap_build_config(cmd_parms *parms, { ap_directive_t *current = *conftree; ap_directive_t *curr_parent = NULL; - char l[MAX_STRING_LEN]; + char *l = apr_palloc (temp_pool, MAX_STRING_LEN); const char *errmsg; if (current != NULL) { -- 2.50.1