mrglavas    2005/08/09 10:13:56

  Modified:    java/src/org/apache/xerces/impl
                        XML11DocumentScannerImpl.java
  Log:
  Fixing JIRA Issue #1094:
  http://issues.apache.org/jira/browse/XERCESJ-1094
  
  Fixing an infinite loop which occured when an XML 1.1 document contained an
  unescaped C0 or C1 control character in an attribute value. We were calling
  the wrong method in scanAttributeValue().
  
  Revision  Changes    Path
  1.23      +3 -3      
xml-xerces/java/src/org/apache/xerces/impl/XML11DocumentScannerImpl.java
  
  Index: XML11DocumentScannerImpl.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xerces/java/src/org/apache/xerces/impl/XML11DocumentScannerImpl.java,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- XML11DocumentScannerImpl.java     4 Oct 2004 21:45:49 -0000       1.22
  +++ XML11DocumentScannerImpl.java     9 Aug 2005 17:13:56 -0000       1.23
  @@ -1,5 +1,5 @@
   /*
  - * Copyright 1999-2004 The Apache Software Foundation.
  + * Copyright 1999-2005 The Apache Software Foundation.
    * 
    * Licensed under the Apache License, Version 2.0 (the "License");
    * you may not use this file except in compliance with the License.
  @@ -343,7 +343,7 @@
                           }
                       }
                   }
  -                else if (c != -1 && XML11Char.isXML11Invalid(c)) {
  +                else if (c != -1 && isInvalidLiteral(c)) {
                       reportFatalError("InvalidCharInAttValue",
                                        new Object[] {eleName, atName, 
Integer.toString(c, 16)});
                       fEntityScanner.scanChar();
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to