From: Jan Kara Date: Tue, 10 Jul 2012 15:58:04 +0000 (+0200) Subject: udf: Improve table length check to avoid possible overflow X-Git-Tag: v3.2.25~38 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c17fcfb52422d098dde1ccdc4a3d24a7ceeb33e2;p=pandora-kernel.git udf: Improve table length check to avoid possible overflow commit 57b9655d01ef057a523e810d29c37ac09b80eead upstream. When a partition table length is corrupted to be close to 1 << 32, the check for its length may overflow on 32-bit systems and we will think the length is valid. Later on the kernel can crash trying to read beyond end of buffer. Fix the check to avoid possible overflow. Reported-by: Ben Hutchings Signed-off-by: Jan Kara Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed