You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rp...@apache.org on 2006/05/25 21:50:26 UTC
svn commit: r409446 - /httpd/httpd/trunk/modules/proxy/ajp_msg.c
Author: rpluem
Date: Thu May 25 12:50:25 2006
New Revision: 409446
URL: http://svn.apache.org/viewvc?rev=409446&view=rev
Log:
* 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.
Modified:
httpd/httpd/trunk/modules/proxy/ajp_msg.c
Modified: httpd/httpd/trunk/modules/proxy/ajp_msg.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/ajp_msg.c?rev=409446&r1=409445&r2=409446&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/ajp_msg.c (original)
+++ httpd/httpd/trunk/modules/proxy/ajp_msg.c Thu May 25 12:50:25 2006
@@ -278,7 +278,7 @@
}
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");
}