tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r627883 - /tomcat/trunk/java/org/apache/catalina/connector/CoyoteAdapter.java
Date Thu, 14 Feb 2008 22:02:44 GMT
Author: markt
Date: Thu Feb 14 14:02:41 2008
New Revision: 627883

URL: http://svn.apache.org/viewvc?rev=627883&view=rev
Log:
Fix ArrayIndexOutOfBoundsException reported on users list. Patch provided by Charles R Caldarale.

Modified:
    tomcat/trunk/java/org/apache/catalina/connector/CoyoteAdapter.java

Modified: tomcat/trunk/java/org/apache/catalina/connector/CoyoteAdapter.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/connector/CoyoteAdapter.java?rev=627883&r1=627882&r2=627883&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/connector/CoyoteAdapter.java (original)
+++ tomcat/trunk/java/org/apache/catalina/connector/CoyoteAdapter.java Thu Feb 14 14:02:41
2008
@@ -682,6 +682,10 @@
         int start = uriBC.getStart();
         int end = uriBC.getEnd();
 
+        // An empty URL is not acceptable
+        if (start == end)
+            return false;
+
         // URL * is acceptable
         if ((end - start == 1) && b[start] == (byte) '*')
           return true;



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


Mime
View raw message