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

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

    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

          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: