From: Phillip Lougher Date: Tue, 3 Sep 2013 03:52:52 +0000 (+0100) Subject: Squashfs: add corruption check in get_dir_index_using_offset() X-Git-Tag: v3.12-rc1~55^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f960cae5357d8e52b8af91e8b1621cae565dffb3;p=pandora-kernel.git Squashfs: add corruption check in get_dir_index_using_offset() We read the size (of the name) field from disk. This value should be sanity checked for correctness to avoid blindly reading huge amounts of unnecessary data from disk on corruption. Note, here we're not actually reading the name into a buffer, but skipping it, and so corruption doesn't cause buffer overflow, merely lots of unnecessary amounts of data to be read. Signed-off-by: Phillip Lougher --- Reading git-diff-tree failed