Whamcloud - gitweb
LU-4047 build: fix 'memory' errors 22/7822/4
authorSebastien Buisson <sebastien.buisson@bull.net>
Wed, 2 Oct 2013 09:29:14 +0000 (11:29 +0200)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 14 Nov 2013 02:52:55 +0000 (02:52 +0000)
commitafa23a54e43d20eea2fc5a43a9fadfc44db44de0
treea2428fcaed9ac97566ca51108b38653c72877eac
parent5bb4d552208b350d6dd7996d75db7e63ec61d898
LU-4047 build: fix 'memory' errors

Fix 'memory corruption' defects found by Coverity version 6.6.1:
Out-of-bounds write (OVERRUN)
Overrunning array at byte offset using index.
Fix 'memory illegal accesses' defects found by Coverity version 6.6.1:
Read from pointer after free (USE_AFTER_FREE)
Dereferencing freed pointer.
Readlink used insecurely (READLINK)
buffer[sizeof(buffer)] is an off-by-one error.

Signed-off-by: Sebastien Buisson <sebastien.buisson@bull.net>
Change-Id: I91af9fae93f89275cf6d3ad97bdc37958c0d709e
Reviewed-on: http://review.whamcloud.com/7822
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/quota/qsd_writeback.c
lustre/utils/lhsmtool_posix.c