]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Grow: avoid truncation error when checking size of array.
authorNeilBrown <neilb@suse.de>
Thu, 26 Nov 2009 03:19:26 +0000 (14:19 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 26 Nov 2009 03:19:26 +0000 (14:19 +1100)
commit2ed4f75388f99968be58097941a9704f6e42d701
tree5b24551bb8954fe05fb636069efc5685772e6af0
parent9277cc7752ae6eb4b10dff7b5fc9ec75d3d52b66
Grow: avoid truncation error when checking size of array.

array.size is only 32bit so it is not safe to multiply it
up before casting to (long long).
Actually, we shouldn't be using array.size here at all, but that
will get fixed in a subsequent patch.

Reported-by: Andrew Burgess <aab@cichlid.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Grow.c