Uploaded image for project: 'XalanC'
  1. XalanC
  2. XALANC-646

During transcoding XalanC fails to append '0' to the transcoded string

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None
    • all

    Description

      If for some reason transcoding with Xerces fails , XalanC is trying to transcode the string by transcoding every single code point. If the original string is ended with '0' , it's usially transcoded to \0 too . The characted is appended to the result string by :
      theTargetVector.insert(
      theTargetVector.end(),
      theOneTranslatedWbChar,
      theOneTranslatedWbChar + XalanDOMString::length(theOneTranslatedWbChar));

      For a string , containing only one \0 character , our XalanDOMString::length(...) function returns zero . As a result , we call the insert( theTargetVector.end(),
      theOneTranslatedWbChar,
      theOneTranslatedWbChar) , that makes no effect on the result string .

      Attachments

        1. patch.diff
          1 kB
          Ashley Zinyk

        Activity

          People

            azinyk Ashley Zinyk
            dmitryh Dmitry Hayes
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: