Whamcloud - gitweb
badblocks: Fix crash when lots of -t patterns given
authorTheodore Ts'o <tytso@mit.edu>
Sun, 6 Jul 2008 22:50:44 +0000 (18:50 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 6 Jul 2008 22:56:31 +0000 (18:56 -0400)
commit69d813520cf14f5700c38c82b5c147aa3756bbd9
tree6da5c21b90f43a2206e4b91cad4dc2b3e1c58287
parent79e62409b3a247e258d9e9206484ed8f193a183e
badblocks: Fix crash when lots of -t patterns given

With more than 8 -t patterns given, badblocks will overwrite the
t_patts array boundary due to realloc not taking into account the size
of an int.  Oops.

Addresses-Debian-Bug: 487298

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