Whamcloud - gitweb
libext2fs: fix overflow when checking s_inodes_count in ext2fs_open()
authorJan Kara <jack@suse.cz>
Tue, 19 Jun 2018 03:19:55 +0000 (23:19 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 19 Jun 2018 14:44:50 +0000 (10:44 -0400)
commit85f1c93dd284c425d6c5423c7bbb1b709b0c00c4
tree5d6ec81fc24e332fff96fccecb6425850ae85b35
parent1071df83f969d64dd6dedf4f697da02e0889bf40
libext2fs: fix overflow when checking s_inodes_count in ext2fs_open()

The check whether s_inodes_count is correct in ext2fs_open() can
overflow and thus not catch all problematic cases. Fix the test.

Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/openfs.c