phdeniel/nfs-ganesha — Issue #31: compiling with NFSv4 minor=0 access array out-of-bound
Author: eitanb
Created: 2011-12-29 08:13:38+00:00
State: open

when compiling with nfsv4.0, the optab4index array (nfs4_Compound.c) is defined differently for minor=0 or 1 but the code uses runtime check to access the array & in the case of compiling with NFSv4 but processing a (COMPOUND4_MINOR != 0), we access the optab4index arrayinto an index which is out-of-bound

my configure CLI is:
CPPFLAGS="-Wall -Wno-pointer-sign" ./configure --with-fsal=GPFS --with-rpcal=ONCRPC --enable-nlm --with-nfs4-minorversion=0

code: the "next" branch of Philipp's repo as of Dec 22nd