From: Phillip Lougher Date: Tue, 3 Sep 2013 03:38:43 +0000 (+0100) Subject: Squashfs: fix corruption checks in squashfs_readdir() X-Git-Tag: v3.12-rc1~55^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68e7f412370ecfeb1bd667d0d174fad34517516e;p=pandora-kernel.git Squashfs: fix corruption checks in squashfs_readdir() The dir_count and size fields when read from disk are sanity checked for correctness. However, the sanity checks only check the values are not greater than expected. As dir_count and size were incorrectly defined as signed ints, this can lead to corrupted values appearing as negative which are not trapped. Signed-off-by: Phillip Lougher --- Reading git-diff-tree failed