DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7704>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7704 org.xml.sax.helpers.AttributesImpl can enter infinite loop Summary: org.xml.sax.helpers.AttributesImpl can enter infinite loop Product: Xerces2-J Version: 2.0.0 Platform: All OS/Version: All Status: NEW Severity: Minor Priority: Other Component: SAX AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] The following code fragment enters an infinite loop. ----- import org.xml.sax.helpers.AttributesImpl; AttributesImpl emptyAttributes = new AttributesImpl(); AttributesImpl copyAttributes = new AttributesImpl(emptyAttributes); copyAttributes.addAttribute("", "", "", "", ""); ----- It appears that the 'ensureCapacity' function assumes that either the 'data' array is null, or its length is greater than zero. Constructing an AttributesImpl object from an empty Attributes collection sets the 'data' array to an array of length zero. Next time 'ensureCapacity' is called it enters an infinite loop. The problem can be seen in current CVS version (Revision 1.5) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
