From: Lasse Collin Date: Thu, 13 Jan 2011 01:01:21 +0000 (-0800) Subject: Decompressors: check input size in decompress_unlzo.c X-Git-Tag: v2.6.38-rc1~254 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a3f81a7029daff5f08aad146f4c4510e790da49;p=pandora-kernel.git Decompressors: check input size in decompress_unlzo.c The code assumes that the input is valid and not truncated. Add checks to avoid reading past the end of the input buffer. Change the type of "skip" from u8 to int to fix a possible integer overflow. Signed-off-by: Lasse Collin Cc: "H. Peter Anvin" Cc: Alain Knaff Cc: Albin Tonnerre Cc: Phillip Lougher Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed