J. Bruce Fields 87d26ea777 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 <bfields@citi.umich.edu>
Acked-by: NeilBrown <neilb@suse.de>
2008-02-01 16:42:15 -05:00
..
2007-10-17 08:42:47 -07:00
2008-01-28 23:58:27 -05:00
2007-10-19 11:53:37 -07:00
2007-12-05 09:25:20 -08:00
2008-01-25 10:12:41 +00:00
2007-10-22 08:13:21 -07:00
2008-01-17 15:38:58 -08:00
2007-10-16 09:43:07 -07:00
2008-01-30 13:31:20 +01:00
2008-01-30 13:31:20 +01:00
2008-01-24 16:13:21 -06:00
2008-02-01 16:42:15 -05:00
2007-10-18 14:37:31 -07:00
2007-11-03 12:27:21 -07:00
2007-12-05 09:21:18 -08:00
2008-01-11 18:05:04 +11:00
2008-01-30 13:33:32 +01:00
2007-10-17 08:42:54 -07:00
2008-01-30 13:31:46 +01:00
2008-01-28 23:21:18 +01:00
2007-07-29 17:09:29 -07:00
2007-10-16 09:42:53 -07:00
2007-05-18 13:09:34 -07:00
2007-12-06 17:07:16 -05:00
2007-11-28 10:58:01 -08:00
2007-05-21 09:18:19 -07:00
2007-07-16 09:05:48 -07:00
2008-01-30 13:31:46 +01:00
2007-10-22 08:13:19 -07:00
2008-01-30 13:31:46 +01:00
2007-10-16 09:42:54 -07:00
2007-07-19 10:04:45 -07:00
2007-11-14 18:45:42 -08:00
2007-10-15 17:00:19 +02:00
2007-07-27 15:40:13 -07:00
2007-10-19 11:53:41 -07:00
2007-10-17 08:43:01 -07:00
2007-10-17 08:42:52 -07:00