summaryrefslogtreecommitdiff
path: root/packages/squashfs-tools-ng.spec
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2021-06-04 12:16:55 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2021-06-04 12:16:55 +0200
commitabcdc94c9939d6b085e2b76f76817df9be5fe2cc (patch)
tree290bd5e923cbdb5aef978ba5c9edb8ed65ff44da /packages/squashfs-tools-ng.spec
parent08612cbb353fca3f4cac1ae0a004d76f73ef878e (diff)
Fix: allow concatenated Bzip2 streams
This is a followup to dd4e6ead142e58568aec89d76b0b2e867ee983f2. Basically the same problem occours with Bzip2, but it so far it wasn't possible to find a sampel that reproduces it. Unlike libxz, the libbz2 API does not support concatenated streams by itself and will choke when trying to decompress after the stream end, so this commit adds a workaround to simply initialize the decompressor on-the-fly and tear it down again when and end-of-stream is returned. The end-of-file condition is only set when there actually is no more data to read. Otherwise, the decompressor will be re-initialized in the next round. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'packages/squashfs-tools-ng.spec')
0 files changed, 0 insertions, 0 deletions