From: J. Bruce Fields Date: Tue, 22 Jan 2008 22:40:42 +0000 (-0500) Subject: nfsd: more careful input validation in nfsctl write methods X-Git-Tag: v2.6.25-rc1~1072^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87d26ea7771ad637035e6bd5a2700d81ee9162da;p=pandora-kernel.git nfsd: more careful input validation in nfsctl write methods Neil Brown points out that we're checking buf[size-1] in a couple places without first checking whether size is zero. Actually, given the implementation of simple_transaction_get(), buf[-1] is zero, so in both of these cases the subsequent check of the value of buf[size-1] will catch this case. But it seems fragile to depend on that, so add explicit checks for this case. Signed-off-by: J. Bruce Fields Acked-by: NeilBrown --- Reading git-diff-tree failed