Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-15766

QXmlStreamWriter::writeCharacters() doesn't properly escape control characters, causing QXmlStreamReader::readNext() to raise an error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P3: Somewhat important
    • None
    • 4.6.3, 4.7.1
    • None
    • Any

    Description

      Using writeCharacters() should yield output that is parseable by QXmlStreamReader.
      But if the source string contains, for example, the ESC character (0x1B), that won't get escaped, and as a result, the reader will raise an error.
      Either writeCharacters() should escape those characters, or QXmlStreamReader must accept them in the input stream.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            phartman Peter Hartmann (closed Nokia identity) (Inactive)
            sirreal Johan Lindh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes