Whamcloud - gitweb
LU-2074 build: fix 'copy into fixed size buffer' errors 54/4154/22
authorSebastien Buisson <sebastien.buisson@bull.net>
Tue, 2 Oct 2012 14:52:17 +0000 (16:52 +0200)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 1 Oct 2013 11:27:10 +0000 (11:27 +0000)
commit723613a734af240e03d9e8b42afeba442a77142d
tree5fff5cc2e6c934cede16b28e3a39bbb33fda5044
parent63e8a4f33dc85d2957a035fc7d4b040de35c08ce
LU-2074 build: 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>
Change-Id: Ia47e6ae132fe476fce202ce06d6fc655f9855012
Reviewed-on: http://review.whamcloud.com/4154
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
16 files changed:
libcfs/libcfs/linux/linux-tcpip.c
libcfs/libcfs/util/parser.c
libcfs/libcfs/workitem.c
lnet/selftest/console.c
lnet/utils/debug.c
lustre/mgs/mgs_llog.c
lustre/ptlrpc/nrs.c
lustre/ptlrpc/sec_config.c
lustre/utils/lfs.c
lustre/utils/liblustreapi.c
lustre/utils/ltrack_stats.c
lustre/utils/lustre_cfg.c
lustre/utils/lustre_rsync.c
lustre/utils/mount_lustre.c
lustre/utils/mount_utils_ldiskfs.c
lustre/utils/obd.c