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

QDataStream::skipRawData no longer works with negative values

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.12.9, 5.15.0
    • Core: I/O
    • None
    • Tested on MacOS 10.14.6, Qt 5.9.9, 5.12.9, and 5.15.0.
    • All

      In Qt 5.9 it was possible to call QDataStream::skipRawData with a negative offset to move backwards through a file, but in Qt 5.12 and 5.15 it gives an error "QIODevice::skip (QBuffer): Called with maxSize < 0" instead.

      It looks like internally it was changed (for non-sequential devices) to use QIODevice::skip() instead of seek(), which doesn't allow negative values.

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

            thiago Thiago Macieira
            mwysocki Matthew Wysocki
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes