Return-Path: Delivered-To: apmail-xml-xerces-j-dev-archive@www.apache.org Received: (qmail 34720 invoked from network); 8 Sep 2004 14:59:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 8 Sep 2004 14:59:05 -0000 Received: (qmail 83819 invoked by uid 500); 8 Sep 2004 14:58:59 -0000 Delivered-To: apmail-xml-xerces-j-dev-archive@xml.apache.org Received: (qmail 83574 invoked by uid 500); 8 Sep 2004 14:58:56 -0000 Mailing-List: contact xerces-j-dev-help@xml.apache.org; run by ezmlm Precedence: bulk Reply-To: xerces-j-dev@xml.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list xerces-j-dev@xml.apache.org Received: (qmail 83514 invoked by uid 99); 8 Sep 2004 14:58:55 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [192.18.33.10] (HELO exchange.sun.com) (192.18.33.10) by apache.org (qpsmtpd/0.28) with SMTP; Wed, 08 Sep 2004 07:58:54 -0700 Received: (qmail 16207 invoked from network); 8 Sep 2004 15:00:38 -0000 Received: from localhost (HELO nagoya) (127.0.0.1) by nagoya.betaversion.org with SMTP; 8 Sep 2004 15:00:38 -0000 Message-ID: <1941233523.1094655638091.JavaMail.apache@nagoya> Date: Wed, 8 Sep 2004 08:00:38 -0700 (PDT) From: xerces-j-dev@xml.apache.org To: xerces-j-dev@xml.apache.org Subject: [jira] Commented: (XERCESJ-1009) endless loop with broken document that contains CDATA section In-Reply-To: <1972729576.1094639917607.JavaMail.apache@nagoya> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N The following comment has been added to this issue: Author: Ankit Pasricha Created: Wed, 8 Sep 2004 7:58 AM Body: Seems to be working fine with 2.6.2 (and latest CVS) in Windows. Could be a linux specific problem --------------------------------------------------------------------- View this comment: http://issues.apache.org/jira/browse/XERCESJ-1009?page=comments#action_52961 --------------------------------------------------------------------- View the issue: http://issues.apache.org/jira/browse/XERCESJ-1009 Here is an overview of the issue: --------------------------------------------------------------------- Key: XERCESJ-1009 Summary: endless loop with broken document that contains CDATA section Type: Bug Status: Unassigned Priority: Major Project: Xerces2-J Versions: 2.6.2 Assignee: Reporter: Daniel Naber Created: Wed, 8 Sep 2004 3:37 AM Updated: Wed, 8 Sep 2004 7:58 AM Environment: Suse Linux 8.2, Java 1.4.1 Description: This code will run into an endless loop trying to parse the (broken) XML. I'd expect an exception instead. import java.io.IOException; import java.io.Reader; import java.io.StringReader; import org.apache.xerces.parsers.SAXParser; import org.xml.sax.InputSource; import org.xml.sax.SAXException; import org.xml.sax.XMLReader; public class XMLTest { public static void main(String[] args) throws IOException, SAXException { XMLReader xr = new SAXParser(); String s = "