]> git.ipfire.org Git - thirdparty/libarchive.git/commit
ZIP reader: support LZMA_STREAM_END marker in 'lzma alone' files 1297/head
authorGrzegorz Antoniak <ga@anadoxin.org>
Mon, 23 Dec 2019 07:20:28 +0000 (08:20 +0100)
committerGrzegorz Antoniak <ga@anadoxin.org>
Mon, 23 Dec 2019 07:20:28 +0000 (08:20 +0100)
commitc8d40b27de8d49cde845c55f5e309b22217a03b8
tree0d487e52db59c762bab264f9d73190fc94db3dca
parent333d2223141a7bdfa31e0ff79c5af55c6a7b646b
ZIP reader: support LZMA_STREAM_END marker in 'lzma alone' files

It appears that ZIPX files with type 14 stream ('lzma alone') can
contain LZMA_STREAM_END markers at the end of the stream. The ZIP reader
was displaying an "unknown error 1" status after encountering such
marker.

The fix handles such case, and the reader doesn't return error status
anymore. Thus it should be possible to unpack files that contain the
LZMA_STREAM_END marker at the end of the stream.

Fixes #1257
libarchive/archive_read_support_format_zip.c