Ignore:
Timestamp:
Apr 21, 2017, 4:28:29 AM (2 months ago)
Author:
brainslayer
Message:

update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-3.18/fs/xfs/libxfs/xfs_inode_buf.c

    r30256 r31885  
    305305                return false;
    306306
     307        /* don't allow invalid i_size */
     308        if (be64_to_cpu(dip->di_size) & (1ULL << 63))
     309                return false;
     310
     311        /* No zero-length symlinks. */
     312        if (S_ISLNK(be16_to_cpu(dip->di_mode)) && dip->di_size == 0)
     313                return false;
     314
    307315        /* only version 3 or greater inodes are extensively verified here */
    308316        if (dip->di_version < 3)
Note: See TracChangeset for help on using the changeset viewer.