]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Don't index past the end of 'best' array in Assemble.
authorNeilBrown <neilb@suse.de>
Fri, 17 Jun 2011 04:48:33 +0000 (14:48 +1000)
committerNeilBrown <neilb@suse.de>
Fri, 17 Jun 2011 04:48:33 +0000 (14:48 +1000)
commitb787bec6bd0ef74a65cc4fab28496996e4a3c12b
treeb32beda30b21d2de0d21915f64255e17dc1d728a
parent73e658d8ccf2ac73d795866e1b568f04cf8ee565
Don't index past the end of 'best' array in Assemble.

The 'best' array only has 'bestcnt' entries allocated, so 'i' should
always be "< bestcnt", not "<= bestcnt".

Reported-by: "Lawrence, Joe" <Joe.Lawrence@stratus.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Assemble.c