Whamcloud - gitweb
e2fsck: Add superblock check to make sure s_first_ino is valid
authorTheodore Ts'o <tytso@mit.edu>
Thu, 22 Jan 2009 20:52:50 +0000 (15:52 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 22 Jan 2009 20:52:50 +0000 (15:52 -0500)
commit1f790a7cc1fbb0dc2d2f621d2508f52a62f80150
treed150c9d0a5338721c5670fda4d6e4b064faec655
parent37d17a65ecb4615546b417038190a41bafca7c51
e2fsck: Add superblock check to make sure s_first_ino is valid

An deliberately corrupted filesystem with an insanely large
s_first_ino field could cause e2fsck to crash with a seg fault.

Thanks to Eric Sesterhenn for supplying test cases which demonstrated
this issue.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/super.c