commit | ba9d929d914654f8dba36c634bb537ecf0f0bb04 | [log] [tgz] |
---|---|---|
author | Theodore Ts'o <tytso@mit.edu> | Fri Sep 07 16:40:25 2007 -0400 |
committer | Theodore Ts'o <tytso@mit.edu> | Fri Sep 07 16:40:25 2007 -0400 |
tree | b28889a772d7f0131e75350bbac4dda72036f977 | |
parent | 5845caa464d51e1dceeb6282c3a00957ae435de1 [diff] |
Don't crash if s_inode_size is zero Any attempt to open a filesystem with s_inode_size set to zero causes a floating point exception. This is true for e2fsck, dumpe2fs, e2image, etc. Fix ext2fs_open2() so that it returns the error code EXT2_ET_CORRUPT_SUPERBLOCK instead of crashing. Thanks to Dean Bender for reporting this bug. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>