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

QXmlSimpleReader::parse(...,true) fails for empty input buffers

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Not Evaluated Not Evaluated
    • None
    • 4.8.3
    • None

      Passing an empty QBuffer - open for reading - to QXmlSimpleReader::parse(...,true) with incremental parsing activated, ends in a fatal error, because EOF is reached. As a consequence, parse returns false. See the example.

      The expected behavior from the documentation is, that true is returned by parse, because further input is expected.

        1. test.cpp
          0.6 kB
        2. test.pro
          0.3 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            thiago Thiago Macieira
            stebol Stefan Bolus
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes