Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@www.apache.org Received: (qmail 6655 invoked from network); 26 Aug 2004 19:31:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 26 Aug 2004 19:31:14 -0000 Received: (qmail 58638 invoked by uid 500); 26 Aug 2004 19:31:06 -0000 Delivered-To: apmail-jakarta-tomcat-dev-archive@jakarta.apache.org Received: (qmail 58415 invoked by uid 500); 26 Aug 2004 19:31:05 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 58402 invoked by uid 500); 26 Aug 2004 19:31:04 -0000 Received: (qmail 58398 invoked by uid 99); 26 Aug 2004 19:31:04 -0000 X-ASF-Spam-Status: No, hits=-2.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.27.1) with SMTP; Thu, 26 Aug 2004 12:31:04 -0700 Received: (qmail 6598 invoked by uid 1787); 26 Aug 2004 19:31:03 -0000 Date: 26 Aug 2004 19:31:03 -0000 Message-ID: <20040826193103.6597.qmail@minotaur.apache.org> From: markt@apache.org To: jakarta-tomcat-connectors-cvs@apache.org Subject: cvs commit: jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http Cookies.java X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N markt 2004/08/26 12:31:03 Modified: util/java/org/apache/tomcat/util/http Cookies.java Log: Fix bug 30870. Remove potential for endless loop in cookie processing. - Patch provided by Tony Perkins Revision Changes Path 1.9 +4 -1 jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http/Cookies.java Index: Cookies.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http/Cookies.java,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- Cookies.java 26 Aug 2004 19:06:39 -0000 1.8 +++ Cookies.java 26 Aug 2004 19:31:03 -0000 1.9 @@ -158,7 +158,10 @@ if( pos<0 ) break; MessageBytes cookieValue=headers.getValue( pos ); - if( cookieValue==null || cookieValue.isNull() ) continue; + if( cookieValue==null || cookieValue.isNull() ) { + pos++; + continue; + } // Uncomment to test the new parsing code if( cookieValue.getType() == MessageBytes.T_BYTES ) { --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org