tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject svn commit: r1125651 - /tomcat/jk/trunk/native/common/jk_connect.c
Date Sat, 21 May 2011 08:57:48 GMT
Author: timw
Date: Sat May 21 08:57:48 2011
New Revision: 1125651

URL: http://svn.apache.org/viewvc?rev=1125651&view=rev
Log:
Switching read byte counters to unsigned types to ensure we don't get int wrapping when counting
the bytes read.
Previously MAX_LINGER_BYTES (32768) was > INT_MAX.

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

Modified: tomcat/jk/trunk/native/common/jk_connect.c
URL: http://svn.apache.org/viewvc/tomcat/jk/trunk/native/common/jk_connect.c?rev=1125651&r1=1125650&r2=1125651&view=diff
==============================================================================
--- tomcat/jk/trunk/native/common/jk_connect.c (original)
+++ tomcat/jk/trunk/native/common/jk_connect.c Sat May 21 08:57:48 2011
@@ -712,8 +712,8 @@ int jk_shutdown_socket(jk_sock_t sd, jk_
     char buf[64];
     char *sb = NULL;
     int rc = 0;
-    int rd = 0;
-    int rp = 0;
+    size_t rd = 0;
+    size_t rp = 0;
     int save_errno;
     int timeout = MS_TO_LINGER;
     time_t start = time(NULL);



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


Mime
View raw message