Whamcloud - gitweb
libext2fs: fix tst_badblocks buffer overrun
authorAndreas Dilger <adilger@dilger.ca>
Mon, 30 Nov 2015 17:09:44 +0000 (12:09 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 30 Nov 2015 17:09:44 +0000 (12:09 -0500)
commitf449486d631987983b4275d246b7bbbb551f3235
treeefb8038fe62d24d882323bef1ce48f54d1f7921b
parent2b833c9aae3323745af3fdc998d8b3255f40511e
libext2fs: fix tst_badblocks buffer overrun

The test2[] array is not 0-terminated and the create_test_list() for
loop does not terminate properly at the end of this array, but
continues until it hits the 0 at the end of test3[].

Reported-by: Hanno Boeck <hanno@hboeck.de>
Addresses: https://bugzilla.kernel.org/show_bug.cgi?id=104311
Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/tst_badblocks.c