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: [email protected]
For additional commands, e-mail: [email protected]