Whamcloud - gitweb
e2fsck, resize2fs: fix a fp precision error that can lead to a seg fault
authorTheodore Ts'o <tytso@mit.edu>
Tue, 6 Jul 2010 00:40:41 +0000 (20:40 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 6 Jul 2010 00:40:41 +0000 (20:40 -0400)
commitac92f3cc0443f5980775e6c3e86724ed817587f6
tree7cda32a0b082fc9393a6f4a56efbefc958beb427
parent22ff06d5f7a90914f7a90bae420e5be7d2e02ce3
e2fsck, resize2fs: fix a fp precision error that can lead to a seg fault

Commit 641b66b fixed a floating point precision error which can result
in a search algorithm looping forever.  It can also result in an array
index being out of bounds and causing a segfault.  Here are two more
cases in e2fsck and resize2fs that need to be fixed.  I've just used
the same fix from the that commit.

Signed-off-by: Lachlan McIlroy <lmcilroy@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/ea_refcount.c
resize/extent.c