Squashfs: sanity check information from disk
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 17 Jul 2013 12:20:25 +0000 (15:20 +0300)
committerMohamad Ayyash <mkayyash@google.com>
Wed, 4 Mar 2015 19:20:23 +0000 (11:20 -0800)
commit639839d89f7b7fd15160389f57edf06b93205b2d
tree05904e096e7cd5af49670fa871b999841b386131
parentb2497fc3057ae27db9aa29579f16ae5afb6d6d08
Squashfs: sanity check information from disk

We read the size of the name from the disk, but a larger name than
expected would cause memory corruption.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
fs/squashfs/namei.c