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

QDataStream::skipRawData no longer works with negative values

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Won't Do
    • Affects Version/s: 5.12.9, 5.15.0
    • Fix Version/s: None
    • Component/s: Core: I/O
    • Labels:
      None
    • Environment:
      Tested on MacOS 10.14.6, Qt 5.9.9, 5.12.9, and 5.15.0.
    • Platform/s:
      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

            Assignee:
            thiago Thiago Macieira
            Reporter:
            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