lzma/gzip: fix potential oops when input data is truncated
authorPhillip Lougher <phillip@lougher.demon.co.uk>
Wed, 23 Sep 2009 22:57:37 +0000 (15:57 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Sep 2009 14:21:05 +0000 (07:21 -0700)
commit6a8811629e9aa611aa710162f9e02020bba52c87
treed3b8ff16950f5cda94b3259fbfa097aea9cb1e5f
parent3354f73b24c6d392ed7fd5583cfcc7604c1934ae
lzma/gzip: fix potential oops when input data is truncated

If the lzma/gzip decompressors are called with insufficient input data
(len > 0 & fill = NULL), they will attempt to call the fill function to
obtain more data, leading to a kernel oops.

Signed-off-by: Phillip Lougher <phillip@lougher.demon.co.uk>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/decompress_inflate.c
lib/decompress_unlzma.c