Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-712

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

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Fixed
    • 2.1.0
    • 2.2.0
    • Utilities
    • None
    • Operating System: All
      Platform: All
    • 14479

    Description

      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)

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            martin.ebourne@csfb.com Martin Ebourne
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment