From: Jeff Trawick Date: Fri, 15 Nov 2013 17:35:16 +0000 (+0000) Subject: Fix potential rejection of valid MaxMemFree and ThreadStackSize X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3065f70a2bcb8f4be55e82af9d91099bb881bf3;p=thirdparty%2Fapache%2Fhttpd.git Fix potential rejection of valid MaxMemFree and ThreadStackSize directives. Submitted by: Mike Rumph Reviewed by: trawick git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1542338 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index e9b48738cc6..6bf9b6890e8 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,9 @@ -*- coding: utf-8 -*- Changes with Apache 2.5.0 + *) Fix potential rejection of valid MaxMemFree and ThreadStackSize + directives. [Mike Rumph ] + *) core: Add parse_errorlog_arg callback to ap_errorlog_provider to allow providers to check the ErrorLog argument. [Jan Kaluza] diff --git a/server/mpm_common.c b/server/mpm_common.c index 71e611356f1..e1f05324474 100644 --- a/server/mpm_common.c +++ b/server/mpm_common.c @@ -389,6 +389,7 @@ const char *ap_mpm_set_max_mem_free(cmd_parms *cmd, void *dummy, return err; } + errno = 0; value = strtol(arg, NULL, 10); if (value < 0 || errno == ERANGE) return apr_pstrcat(cmd->pool, "Invalid MaxMemFree value: ", @@ -408,6 +409,7 @@ const char *ap_mpm_set_thread_stacksize(cmd_parms *cmd, void *dummy, return err; } + errno = 0; value = strtol(arg, NULL, 10); if (value < 0 || errno == ERANGE) return apr_pstrcat(cmd->pool, "Invalid ThreadStackSize value: ",