]> git.baikalelectronics.ru Git - kernel.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)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 2 May 2011 15:46:12 +0000 (08:46 -0700)
commit291a29d5642ac3456b11bd6c9312511dfe7b996c
tree1ced1d6ba3628d76ae389175b0f2c24711358d84
parent3734fed8d51b10dcc29266fd87a11241327dbf89
XZ decompressor: Fix decoding of empty LZMA2 streams

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>
lib/xz/xz_dec_lzma2.c