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

Martin Sandsmark <martin.sandsm...@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CONFIRMED                   |RESOLVED
         Resolution|---                         |FIXED
      Latest Commit|                            |http://commits.kde.org/karc
                   |                            |hive/853496897f5216909337ed
                   |                            |8711e1b8391ae1b6a3

--- Comment #17 from Martin Sandsmark <martin.sandsm...@kde.org> ---
Git commit 853496897f5216909337ed8711e1b8391ae1b6a3 by Martin T. H. Sandsmark.
Committed on 04/07/2016 at 22:32.
Pushed by sandsmark into branch 'master'.

Handle multiple gzip streams

If kgzipfilter notices that zlib didn't read all the data, it tries to
re-init the stream and read the rest of the buffer. This is tested by
the unit test from Sune. The case where there's more than two streams
available in the current buffer is tested in a unit test added
separately.

If the split between the streams falls right between two buffers, we
need KCompressionDevice to notice that there's data left and try to
continue decompressing. This is easy to test by setting BUFFER_SIZE to
the size of the first stream in the unit test data (28 bytes).

REVIEW: 128369

M  +0    -1    autotests/kfiltertest.cpp
M  +7    -2    src/kcompressiondevice.cpp
M  +38   -10   src/kgzipfilter.cpp

http://commits.kde.org/karchive/853496897f5216909337ed8711e1b8391ae1b6a3

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

Reply via email to