alistair23-linux/fs/squashfs
Phillip Lougher f960cae535 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 <phillip@squashfs.org.uk>
2013-09-06 04:57:53 +01:00
..
block.c Squashfs: Optimized uncompressed buffer loop 2013-09-05 00:13:37 +01:00
cache.c Squashfs: optimise squashfs_cache_get entry search 2011-12-30 01:24:13 +00:00
decompressor.c Squashfs: Make ZLIB compression support optional 2011-07-22 03:01:28 +01:00
decompressor.h Squashfs: Make ZLIB compression support optional 2011-07-22 03:01:28 +01:00
dir.c Squashfs: add corruption check in get_dir_index_using_offset() 2013-09-06 04:57:53 +01:00
export.c
file.c squashfs: remove the second argument of k[un]map_atomic() 2012-03-20 21:48:25 +08:00
fragment.c
id.c
inode.c userns: Convert squashfs to use kuid/kgid where appropriate 2012-09-21 03:13:35 -07:00
Kconfig Merge git://git.kernel.org/pub/scm/linux/kernel/git/pkl/squashfs-next 2011-11-04 16:48:37 -07:00
lzo_wrapper.c
Makefile Squashfs: Make ZLIB compression support optional 2011-07-22 03:01:28 +01:00
namei.c Squashfs: fix corruption checks in squashfs_lookup() 2013-09-06 04:57:53 +01:00
squashfs.h Squashfs: Make ZLIB compression support optional 2011-07-22 03:01:28 +01:00
squashfs_fs.h Squashfs: get rid of obsolete definitions in header file 2012-03-10 03:01:01 +00:00
squashfs_fs_i.h
squashfs_fs_sb.h Squashfs: optimise squashfs_cache_get entry search 2011-12-30 01:24:13 +00:00
super.c fs: Limit sys_mount to only request filesystem modules. (Part 3) 2013-03-11 07:09:48 -07:00
symlink.c squashfs: remove the second argument of k[un]map_atomic() 2012-03-20 21:48:25 +08:00
xattr.c
xattr.h
xattr_id.c
xz_wrapper.c
zlib_wrapper.c