https://bugs.kde.org/show_bug.cgi?id=395471

            Bug ID: 395471
           Summary: KCompressionDevice seeks to wrong position
           Product: frameworks-karchive
           Version: 5.46.0
          Platform: openSUSE RPMs
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: fa...@kde.org
          Reporter: alpha0...@yahoo.de
                CC: kdelibs-b...@kde.org
  Target Milestone: ---

Disclaimer: I don't have a full understanding of anything I'm going to talk
about, so this bug may as well be a case of wrong usage or a lack of
documentation.

There is a problem with kio_iso that is caused by receiving data from
KCompressionDevice from the wrong offset position, and which can be fixed by
preceding any seek with seek(0):

https://bugs.kde.org/show_bug.cgi?id=372023#c9

As I understand it, KCompressionDevice and its Filter's QFileDevice both
inherit a 'pos' and 'devicePos' member variable from QFileDevice. My
investigation of the kio_iso bug revealed that these two sets of variables get
out of sync, so that the data coming from the QFileDevice does not correspond
to the offset position stored in KCompressionDevice's 'pos' variable.

In case this is not a bug in KCompressionDevice, is there some sort of
documentation available that explains how one is supposed to avoid a situation
like that?

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to