]> git.karo-electronics.de Git - karo-tx-linux.git/commit
XZ decompressor: Fix decoding of empty LZMA2 streams
authorLasse Collin <lasse.collin@tukaani.org>
Sun, 1 May 2011 16:38:42 +0000 (19:38 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 9 May 2011 22:06:48 +0000 (15:06 -0700)
commit7b17624a7f6b41678d7452ebd5a525ddc3aaf3d3
treea1838dfe39f544cefd2768e6c2d25d1b75b4ffbd
parent36f96751ce09f4ab400e93408cc602d2e080a799
XZ decompressor: Fix decoding of empty LZMA2 streams

commit 646032e3b05b32d3f20cb108a030593d9d792eb5 upstream.

The old code considered valid empty LZMA2 streams to be corrupt.
Note that a typical empty .xz file has no LZMA2 data at all,
and thus most .xz files having no uncompressed data are handled
correctly even without this fix.

Signed-off-by: Lasse Collin <lasse.collin@tukaani.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
lib/xz/xz_dec_lzma2.c