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

QDataStream::skipRawData no longer works with negative values

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • 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

    Description

      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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes