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)
committerSteve Conklin <sconklin@canonical.com>
Thu, 2 Jun 2011 19:23:16 +0000 (14:23 -0500)
commit03f56cfce0cfc047045c003e181d09f89b6956e0
tree6cadfc0411b72eb954623ac7502b929e63354e85
parent07df375554d874b4d5c44d5b167c653820d3abab
XZ decompressor: Fix decoding of empty LZMA2 streams

BugLink: http://bugs.launchpad.net/bugs/780546

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>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
lib/xz/xz_dec_lzma2.c