diff options
author | Brian Behlendorf <behlendorf1@llnl.gov> | 2007-03-19 08:52:10 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2007-03-19 08:52:10 -0400 |
commit | 538e654c25b7bc48d4dd86ebcc926585e530f0ef (patch) | |
tree | cfec9e8d9536c9d4d12af6c87b6eafe51bd77bf7 /e2fsck/ChangeLog | |
parent | d2021de5cf94d7a55181004beee296b310901718 (diff) | |
download | e2fsprogs-538e654c25b7bc48d4dd86ebcc926585e530f0ef.tar.gz |
[COVERITY] Check for NULL return from dict_lookup() in e2fsck
The dict_lookup() function can potentially return a NULL dnode_t. It is
not checked in two places in the clone_file() function. Looks to be
safe to continue if n is NULL, so just print a warning message and
continue.
Coverity ID: 9: Null Returns
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'e2fsck/ChangeLog')
-rw-r--r-- | e2fsck/ChangeLog | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/e2fsck/ChangeLog b/e2fsck/ChangeLog index dd0524d4..0d530c00 100644 --- a/e2fsck/ChangeLog +++ b/e2fsck/ChangeLog @@ -1,5 +1,9 @@ 2007-03-19 Theodore Tso <tytso@mit.edu> + * pass1b.c (clone_file): Fix a coverity-found bug; add error + checking in case dict_lookup() returns NULL when looking up + an block or inode record after cloning the EA block. + * profile.c (profile_init, get_dirlist): Fix bug where if a profile directory is completely empty, the profile library would segfault. |