Whamcloud - gitweb
LU-2709 build: fix 'memory corruption' errors
authorSebastien Buisson <sebastien.buisson@bull.net>
Wed, 30 Jan 2013 14:55:47 +0000 (15:55 +0100)
committerOleg Drokin <green@whamcloud.com>
Thu, 31 Jan 2013 05:18:21 +0000 (00:18 -0500)
commit273255103bfd88d5129ffd2a3c009b54a2300b4b
tree80c7f3e48826b819eb7155983a549197dd0592aa
parent1536807853b539e00d4c490778ad1e13da9e19ba
LU-2709 build: fix 'memory corruption' errors

Fix 'memory corruption' defects found by Coverity version 6.5.0:
Out-of-bounds access (OVERRUN_STATIC)
Overrunning static array by passing it to a
function which indexes it at a higher byte position.
Unbounded source buffer (STRING_SIZE)
Passing string of unknown size to a function that expects
a string of a particular size.

Signed-off-by: Sebastien Buisson <sebastien.buisson@bull.net>
Change-Id: Iabc9bd7609d285a3709737748f2100b90769d795
Reviewed-on: http://review.whamcloud.com/5210
Tested-by: Hudson
Reviewed-by: Keith Mannthey <keith.mannthey@intel.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/utils/routerstat.c
lustre/utils/lr_reader.c