From ce5ee99548593426b477a554653439ff7b11face Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Fri, 19 Feb 1999 18:56:43 +0000 Subject: [PATCH] ChangeLog, icheck.c: icheck.c (do_icheck): Check to make sure the inode has valid blocks before iterating over that inode's blocks. --- debugfs/ChangeLog | 5 +++++ debugfs/icheck.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/debugfs/ChangeLog b/debugfs/ChangeLog index 50c0c8e..88cfb54 100644 --- a/debugfs/ChangeLog +++ b/debugfs/ChangeLog @@ -1,3 +1,8 @@ +1999-02-09 Theodore Ts'o + + * icheck.c (do_icheck): Check to make sure the inode has valid + blocks before iterating over that inode's blocks. + 1999-01-09 Theodore Ts'o * Release of E2fsprogs 1.14 diff --git a/debugfs/icheck.c b/debugfs/icheck.c index 9e40611..968d457 100644 --- a/debugfs/icheck.c +++ b/debugfs/icheck.c @@ -108,6 +108,8 @@ void do_icheck(int argc, char **argv) while (ino) { if (!inode.i_links_count) goto next; + if (!ext2fs_inode_has_valid_blocks(&inode)) + goto next; /* * To handle filesystems touched by 0.3c extfs; can be * removed later. -- 1.8.3.1