Whamcloud - gitweb
Fix potential e2fsck -n crash
authorTheodore Ts'o <tytso@mit.edu>
Sun, 22 Oct 2006 03:27:03 +0000 (23:27 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 22 Oct 2006 03:27:03 +0000 (23:27 -0400)
commit977ac8731bf3bd934421dd8107e77325ec7e6de7
treee57f0f4d7f27ef27740a72e6a1fe773dd1a7845e
parente10521444d34a418febca4b406f5109ff4256ba3
Fix potential e2fsck -n crash

Don't core dump if there is a corrupt htree interior node.  If the block
number is larger than the number of blocks in the directory, don't write
past the end of malloc'ed memory.

Addresses SourceForge Bug: #1512778

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