]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
libext2fs: make ext2fs_dirent_has_tail() more strict
authorTheodore Ts'o <tytso@mit.edu>
Sun, 15 Mar 2020 03:24:39 +0000 (23:24 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 15 Mar 2020 03:24:39 +0000 (23:24 -0400)
commiteb88b751745b5e6b39ddfa2196b5efa9a25535a9
tree9c8304e6d7aaa260ee7e80eedc6d542049d85a28
parent6e315c931fdbce55e76bfbdb8f18fa9e59ca48a2
libext2fs: make ext2fs_dirent_has_tail() more strict

Previously ext2fs_dirent_has_tail() would return true if the directory
was corrupted.  If the directory is corrupted, then by definition it
doesn't have a valid checksum tail.

(This fixes a big-endian failure on the master branch.)

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/csum.c
tests/f_dir_bad_csum/expect.1
tests/f_rebuild_csum_rootdir/expect.1
tests/f_resize_inode_meta_bg/expect.1