From: Ruediger Pluem Date: Thu, 25 May 2006 19:50:25 +0000 (+0000) Subject: * Actually we are adding 3 bytes to the string (two for the length in front X-Git-Tag: 2.3.0~2383 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3b5b0d58820deba94d407b0e57bd6dbebc6a2382;p=apache * Actually we are adding 3 bytes to the string (two for the length in front and a \0 at the end) and not 2. So adjust the length check. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@409446 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/ajp_msg.c b/modules/proxy/ajp_msg.c index 51a9600b59..0408776e20 100644 --- a/modules/proxy/ajp_msg.c +++ b/modules/proxy/ajp_msg.c @@ -278,7 +278,7 @@ apr_status_t ajp_msg_append_string_ex(ajp_msg_t *msg, const char *value, } len = strlen(value); - if ((msg->len + len + 2) > AJP_MSG_BUFFER_SZ) { + if ((msg->len + len + 3) > AJP_MSG_BUFFER_SZ) { return ajp_log_overflow(msg, "ajp_msg_append_cvt_string"); }