Whamcloud - gitweb
libext2fs: fix inode cache overruns
authorEric Whitney <enwlinux@gmail.com>
Sat, 17 Nov 2012 18:37:45 +0000 (13:37 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 30 Nov 2012 00:59:41 +0000 (19:59 -0500)
commit43c4910371a06cdb41c172b62c7d4b81d84a4ddb
tree3f9eb448f32a7d4758a6ef631bfe1f68d2b25a2a
parentccea20f62d592d765380d71508c999d9a26a20c1
libext2fs: fix inode cache overruns

An inode cache slot will be overrun if a caller to ext2fs_read_inode_full()
or ext2fs_write_inode_full() attempts to read or write a full sized 156
byte inode when the target filesystem contains 128 byte inodes.  Limit the
copied inode to the smaller of the target filesystem's or the caller's
requested inode size.

Signed-off-by: Eric Whitney <enwlinux@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/inode.c