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

QDataStream &operator>> usage incorrect

XMLWordPrintable

      The stream can (and does) return LESS than the maximum amount of data requested: the code is written to get exactly what it expects, which is not what the documentation for QDataStream::readRawData says.

      QUrl uses QByteArray and doesn't check to see if it got a valid result. It looks like the code was coded towards the idea of looping to read blocks of data, but instead, at the most, will ever loop once and either succeed or fail.

      Result is corrupted/missing data.

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

            Unassigned Unassigned
            stormols Marius Storm-Olsen
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes