From: Lasse Collin Date: Thu, 13 Jan 2011 01:01:19 +0000 (-0800) Subject: Decompressors: validate match distance in decompress_unlzma.c X-Git-Tag: v2.6.38-rc1~256 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb0cf3e19b4940a2d26dcdea03510ae16a580fcd;p=pandora-kernel.git Decompressors: validate match distance in decompress_unlzma.c Validate the newly decoded distance (rep0) in process_bit1(). This is to detect corrupt LZMA data quickly. The old code can run for long time producing garbage until it hits the end of the input. 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