Whamcloud - gitweb
LU-1855 build: fix 'out-of-bounds access' errors
authorSebastien Buisson <sebastien.buisson@bull.net>
Fri, 7 Sep 2012 09:04:36 +0000 (11:04 +0200)
committerOleg Drokin <green@whamcloud.com>
Wed, 3 Oct 2012 22:53:49 +0000 (18:53 -0400)
commitbb8c57032a47020099bad60f7cea89b4530841d3
tree5f65cd09977f97097143d747fbc3eecca869fb29
parentcd157e9b6e875fb988f640597bb2166229eef787
LU-1855 build: fix 'out-of-bounds access' errors

Fix 'out-of-bounds access' defects found by Coverity version 6.0.3:
Out-of-bounds access (OVERRUN_STATIC)
Overrunning static array by passing it to a
function which indexes it at a higher byte position.

Signed-off-by: Sebastien Buisson <sebastien.buisson@bull.net>
Change-Id: Ic0fd90787ef969c786e9b0149df83491cdddc631
Reviewed-on: http://review.whamcloud.com/3902
Reviewed-by: Fan Yong <yong.fan@whamcloud.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
libcfs/autoconf/lustre-libcfs.m4
libcfs/include/libcfs/user-prim.h
libcfs/libcfs/user-prim.c
lustre/ptlrpc/sec.c
lustre/ptlrpc/sec_lproc.c