]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit - e2fsck/pass1.c
e2fsck: Don't crash if an inode with a bad extent header is not cleared
authorTheodore Ts'o <tytso@mit.edu>
Sun, 17 May 2009 12:42:52 +0000 (08:42 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 17 May 2009 12:42:52 +0000 (08:42 -0400)
commit0a68b181c1c1d59a284c9cb524b301d183825099
treeb9e064b31d64c8a817432ec4e3295e8f3667e7ef
parent5fdb89e30e96db74ab035524dded4a809aef441c
e2fsck: Don't crash if an inode with a bad extent header is not cleared

If ext2fs_extent_open() fails due to a corrupt extent header, and the
user declines to clear the inode, check_blocks_extents() should bail
out; otherwise, it will cause a core dump due a null pointer
dereference.

Addresses-Sourceforge-Bug: #2791794

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