Re: [PATCH 07/10] e2fsck: drop redundant checks of symlink i_size

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Mar 02, 2018 at 04:59:20PM -0800, Eric Biggers wrote:
> From: Eric Biggers <ebiggers@xxxxxxxxxx>
> 
> e2fsck_pass1_check_symlink() verifies that the symlink inode's i_size is
> less than the buffer length (60 for fast symlinks, fs->blocksize for
> slow symlinks).  But it also verifies that len == i_size &&
> len < buflen, which already implies i_size < buflen.  Thus, remove the
> redundant checks of i_size.
> 
> Signed-off-by: Eric Biggers <ebiggers@xxxxxxxxxx>

Applied, thanks.

				- Ted



[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux