staging: lustre: fix 'copy into fixed size buffer' errors
authorSebastien Buisson <sebastien.buisson@bull.net>
Wed, 2 Mar 2016 22:01:51 +0000 (17:01 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 Mar 2016 23:23:49 +0000 (15:23 -0800)
commit661489adb6bade7bb452e6513daf52e607d1094e
tree581d4008e32644f62513aa738f245b3ec6adb46b
parent5412d816dac18b9f035a753f54fc0e084c8cf376
staging: lustre: fix 'copy into fixed size buffer' errors

Fix 'copy into fixed size buffer' defects found by Coverity
version 6.0.3:
Copy into fixed size buffer (STRING_OVERFLOW)
The fixed-size string might be overrun by copying without
checking the length.

Signed-off-by: Sebastien Buisson <sebastien.buisson@bull.net>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-2074
Reviewed-on: http://review.whamcloud.com/4154
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/lnet/lib-socket.c
drivers/staging/lustre/lnet/selftest/console.c
drivers/staging/lustre/lustre/libcfs/workitem.c
drivers/staging/lustre/lustre/ptlrpc/nrs.c
drivers/staging/lustre/lustre/ptlrpc/sec_config.c