]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
resize2fs: fix crash when there is an ea block and no blocks to migrate
authorTheodore Ts'o <tytso@mit.edu>
Wed, 10 Aug 2016 19:49:35 +0000 (15:49 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 10 Aug 2016 20:00:17 +0000 (16:00 -0400)
commit3d6fc974831a360aee460e54c442538445f3017c
tree1a11bad7b863a26372961d6f57d8becf27c6caab
parentc2c5c58593f7e4944fcf57d07e66baaf6a82b11d
resize2fs: fix crash when there is an ea block and no blocks to migrate

This fixes a bug introduced in 1.43 by commit fb47b94fffc: "resize2fs:
rewrite extent/dir/ea block checksums when migrating".  If there is an
extended attribute block and there are no blocks that need to migrate,
we will crash.

The bug was caused by a botched De Morgan's transformation.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
resize/resize2fs.c