libmultipath: Fix possible string overflow
authorHannes Reinecke <hare@suse.de>
Tue, 3 May 2011 14:27:29 +0000 (16:27 +0200)
committerHannes Reinecke <hare@suse.de>
Tue, 3 May 2011 15:11:04 +0000 (17:11 +0200)
commit98614e20996f3a5b887dd7e50f6a5f874eda6be9
tree45c956b1f0a7a2d5598e4c39bfeae285699ec43e
parentb7313da2a287c8c214626605b30a7bc5ed90ca55
libmultipath: Fix possible string overflow

basenamecpy() and devt2devname() need to be passed in the
length of the string into which the modified value should
be copied. Otherwise a string overflow can be induced.

Signed-off-by: Hannes Reinecke <hare@suse.de>
libmultipath/configure.c
libmultipath/discovery.c
libmultipath/discovery.h
libmultipath/util.c
libmultipath/util.h
multipath/main.c