httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rpl...@apache.org
Subject svn commit: r409446 - /httpd/httpd/trunk/modules/proxy/ajp_msg.c
Date Thu, 25 May 2006 19:50:26 GMT
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");
     }
 



Mime
View raw message