tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rj...@apache.org
Subject svn commit: r1647880 - /tomcat/jk/trunk/native/common/jk_status.c
Date Thu, 25 Dec 2014 08:02:29 GMT
Author: rjung
Date: Thu Dec 25 08:02:28 2014
New Revision: 1647880

URL: http://svn.apache.org/r1647880
Log:
Don't allow status worker to exceed buffer.

Modified:
    tomcat/jk/trunk/native/common/jk_status.c

Modified: tomcat/jk/trunk/native/common/jk_status.c
URL: http://svn.apache.org/viewvc/tomcat/jk/trunk/native/common/jk_status.c?rev=1647880&r1=1647879&r2=1647880&view=diff
==============================================================================
--- tomcat/jk/trunk/native/common/jk_status.c (original)
+++ tomcat/jk/trunk/native/common/jk_status.c Thu Dec 25 08:02:28 2014
@@ -505,7 +505,7 @@ static int jk_printf(jk_ws_service_t *s,
 #endif
     rc = vsnprintf(buf, HUGE_BUFFER_SIZE, fmt, args);
     va_end(args);
-    if (rc > 0)
+    if (rc > 0 && rc < HUGE_BUFFER_SIZE)
         s->write(s, buf, rc);
     else
         jk_log(l, JK_LOG_WARNING,



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message