Whamcloud - gitweb
libext2fs: add stricter checks on the inode size in ext2fs_open2()
authorTheodore Ts'o <tytso@mit.edu>
Sun, 23 Jul 2017 04:26:44 +0000 (00:26 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 23 Jul 2017 04:44:49 +0000 (00:44 -0400)
commitbf445b4e68a053d0b5eaf8da0f61a4c9d13fb5a8
treecc88743fb2021badd3943e80999a62c5d78ec79e
parentf97c601a6c5b986586a5a39e5015c70e96c8bc9a
libext2fs: add stricter checks on the inode size in ext2fs_open2()

An inode size larger than the block size can cause userspace programs
to crash.

This problem was found using American Fuzzy Lop.

Reported-by: Adam Buchbinder <abuchbinder@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/openfs.c