From: Jan Kara Date: Fri, 19 Dec 2014 13:27:55 +0000 (+0100) Subject: udf: Check component length before reading it X-Git-Tag: fixes-v4.0-rc1~360^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e237ec37ec154564f8690c5bd1795339955eeef9;p=pandora-kernel.git udf: Check component length before reading it Check that length specified in a component of a symlink fits in the input buffer we are reading. Also properly ignore component length for component types that do not use it. Otherwise we read memory after end of buffer for corrupted udf image. Reported-by: Carl Henrik Lunde CC: stable@vger.kernel.org Signed-off-by: Jan Kara --- Reading git-diff-tree failed