From 3b5b0d58820deba94d407b0e57bd6dbebc6a2382 Mon Sep 17 00:00:00 2001 From: Ruediger Pluem Date: Thu, 25 May 2006 19:50:25 +0000 Subject: [PATCH] * 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 --- modules/proxy/ajp_msg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); } -- 2.40.0