Whamcloud - gitweb
libext2fs: fix binary search for the icount and badblocks stores
authorTheodore Ts'o <tytso@mit.edu>
Wed, 31 Aug 2011 18:27:21 +0000 (14:27 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 31 Aug 2011 18:27:21 +0000 (14:27 -0400)
commita4aff9ca5bcc3df76dcb3d49765674feba3d7654
treeb9ee6ada7799fb1ee62fe8f9c0a682787cad3298
parent9b3018a82e843d860e05dc8d75f9358d4436547e
libext2fs: fix binary search for the icount and badblocks stores

Remove the interpolation because there is a bug in icount which can
cause a core dump if calculated range gets turned into a NaN and then
do an out-of-bounds array access.  We could fix this with some more
tests, but the complexity is such that nuking all of the interpolation
code will be faster than fixing the interpolation.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/ext2fs/badblocks.c
lib/ext2fs/icount.c