You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2001/04/27 12:04:32 UTC
[Bug 1552] New - AttributesImpl.removeAttributes() bug
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1552
*** shadow/1552 Fri Apr 27 03:04:32 2001
--- shadow/1552.tmp.19833 Fri Apr 27 03:04:32 2001
***************
*** 0 ****
--- 1,22 ----
+ +============================================================================+
+ | AttributesImpl.removeAttributes() bug |
+ +----------------------------------------------------------------------------+
+ | Bug #: 1552 Product: Xerces-J |
+ | Status: NEW Version: 1.3.1 |
+ | Resolution: Platform: PC |
+ | Severity: Major OS/Version: All |
+ | Priority: Medium Component: SAX |
+ +----------------------------------------------------------------------------+
+ | Assigned To: xerces-j-dev@xml.apache.org |
+ | Reported By: kot_p@hotbox.ru |
+ | CC list: Cc: |
+ +----------------------------------------------------------------------------+
+ | URL: |
+ +============================================================================+
+ | DESCRIPTION |
+ In removeattributes() function copies wrong number of array items. Instead of
+ (length-index)*5 it must be (length-index - 1)*5:
+
+ 438: if (index < length - 1) {
+ 439: System.arraycopy(data, (index+1)*5, data, index*5, (length-index)*5);
+ 440: }
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org