xz: fix decoding of LZMA2 streams having no uncompressed data.
authorLasse Collin <lasse.collin@tukaani.org>
Wed, 27 Feb 2013 15:38:06 +0000 (16:38 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 27 Feb 2013 15:38:06 +0000 (16:38 +0100)
commita1ae2b75a71b4b99948aa0f9a15cf1de52bb40d6
treedeba2860881324f537b40a5924128757466079a9
parentefb800439fd29382404fe8044774903b3b52db3f
xz: fix decoding of LZMA2 streams having no uncompressed data.

No .xz encoder creates files with empty LZMA2 streams,
but such files would still be valid and decompressors
must accept them.

Note that empty .xz files are a different thing than
empty LZMA2 streams. This bug didn't affect typical .xz
files that had no uncompressed data.

Signed-off-by: Lasse Collin <lasse.collin@tukaani.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
archival/libarchive/unxz/xz_dec_lzma2.c