libmultipath: check argument length in execute_program()
authorHannes Reinecke <hare@suse.de>
Wed, 2 Jun 2010 10:49:37 +0000 (12:49 +0200)
committerHannes Reinecke <hare@suse.de>
Tue, 3 May 2011 08:10:46 +0000 (10:10 +0200)
commit9aa688ee3a3bae7c97bc30b3dcd102d025a43d1a
treea5ee36fb4acde1c853935091e041e0181ad3f29f
parent71dab640429d0017a05b22d0033e41afe0afeac4
libmultipath: check argument length in execute_program()

The 'path' argument of execute_program() is actually an
array with fixed length. So we should be using the same
length here to avoid overflows. And we should check the
number or arguments, too, as the list we're using is
static, too.

Signed-off-by: Hannes Reinecke <hare@suse.de>
libmultipath/callout.c
libmultipath/structs.h