Whamcloud - gitweb
LU-2227 build: fix 'memory illegal access' errors
authorSebastien Buisson <sebastien.buisson@bull.net>
Thu, 25 Oct 2012 12:32:15 +0000 (14:32 +0200)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 20 Feb 2013 02:59:08 +0000 (21:59 -0500)
commitcc5ef6ae5412c3e94061d949ef684036eb003f27
tree249d02f580360d1325a8831b1766e37466cd6127
parentbca470a9579d27433974ff819b6ac18960ef0000
LU-2227 build: fix 'memory illegal access' errors

Fix 'memory illegal access' defects found by Coverity version
6.0.3:
Buffer not null terminated (BUFFER_SIZE_WARNING)
Calling strncpy with a certain maximum size argument on
destination array of same size might leave the destination string
unterminated.
Out-of-bounds read (OVERRUN_STATIC)
Overrunning static array with n elements, at position n.
String not null terminated (STRING_NULL)
Function does not terminate string.

Signed-off-by: Sebastien Buisson <sebastien.buisson@bull.net>
Change-Id: I5ded09054b2e0e5296ba17d7528518fed298fc89
Reviewed-on: http://review.whamcloud.com/4391
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: Keith Mannthey <keith.mannthey@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
19 files changed:
lnet/klnds/o2iblnd/o2iblnd.c
lnet/selftest/framework.c
lustre/fld/fld_cache.c
lustre/include/lustre_disk.h
lustre/lmv/lproc_lmv.c
lustre/lod/lod_lov.c
lustre/lov/lov_ea.c
lustre/lov/lov_pack.c
lustre/mgc/mgc_request.c
lustre/mgs/mgs_llog.c
lustre/obdclass/cl_page.c
lustre/obdclass/llog_cat.c
lustre/obdclass/obd_mount.c
lustre/osd-ldiskfs/osd_handler.c
lustre/osd-ldiskfs/osd_iam.h
lustre/ptlrpc/sec_config.c
lustre/quota/qsd_lib.c
lustre/utils/l_getidentity.c
lustre/utils/mount_utils_ldiskfs.c