You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bu...@apache.org on 2002/11/12 17:35:52 UTC

DO NOT REPLY [Bug 14479] New: - XMLString::subString failure when len(source)==0

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=14479>.
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=14479

XMLString::subString failure when len(source)==0

           Summary: XMLString::subString failure when len(source)==0
           Product: Xerces-C++
           Version: 2.1.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Utilities
        AssignedTo: xerces-c-dev@xml.apache.org
        ReportedBy: Martin.Ebourne@csfb.com


XMLString::subString(buffer,"",0,0) would not seem outrageous. Gives 
ArrayIndexOutOfBoundsException.

This test in the subString code would seem to be the culprit:

if (startIndex > srcLen-1

This appears in both char* and XMLCh* versions.

PS. This could also be generalised to
XMLString::subString(buffer,text,textLen,textLen)

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org