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

QDataStream doesn't check return values from QIODevice::write

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • None
    • 4.0.0, 4.0.1, 4.1.0, 4.1.1, 4.1.2, 4.1.3, 4.1.4, 4.1.5, 4.2.0, 4.2.1, 4.2.2, 4.2.3, 4.3.0, 4.3.1, 4.3.2, 4.3.3, 4.3.4, 4.3.5, 4.4.0, 4.4.1, 4.4.2, 4.4.3, 4.5.0, 4.5.1, 4.5.2, 4.5.3, 4.6.0, 4.6.1, 4.6.2, 4.6.3, 4.7.0
    • Core: I/O
    • None
    • 73da1fd9ff3e316dca3367a013f41b2488ac4081

      QDataStream doesn't check for the return value of QIODevice::write() in any of its operator<< implementations. This is either a bug in those operator<< implementations (where if the returned size > 0 but smaller than what they tried to write it should call write() again with the remaining data), or a bug in the documentation for QIODevice, where nowhere it says that things break if your implementation of writeData() returns a positive value other than then length passed to it.

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

            cduclos Carlos Duclos (Inactive)
            mkruisselbrink Marijn Kruisselbrink
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes