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

Pluggin of DOMStringPrintWriter into FormatterToXML leads to assert

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: XalanC
    • Labels:
      None
    • Environment:
      All

      Description

      When we plug DOMStringPrintWriter into FormatterToXML , the variable m_stream is getting value null . Therefore , the assert in FormatterToXML.cpp , line 629 will check the right condition. As a side comment , if the FormatterToXML is initalized with DOMStringPrintWriter , and the parameter fBufferData having a value "false" , the processor will crach on the null pointer for the same reason : DOMStringPrintWriter is having m_stream data member null;

      I'd suggest to comment out the second assert in FormatterToXML.cpp , function FormatterToXML::accumCharUTF.

        Attachments

        1. patch.diff
          0.4 kB
          Ashley Zinyk

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: