Unix CM: Don't overflow ICL logs array
authorSimon Wilkinson <sxw@your-file-system.com>
Thu, 28 Feb 2013 13:45:00 +0000 (13:45 +0000)
committerJeffrey Altman <jaltman@your-file-system.com>
Fri, 1 Mar 2013 00:20:00 +0000 (16:20 -0800)
commitff8bae8938532d95f792258d2c520705e095e7af
treee6698f2d2a8c735131f9697581ade92cfae00354
parent8f51502e5f45a43fba130d260813716be894d51e
Unix CM: Don't overflow ICL logs array

When checking whether a user supplied index into the ICL logs array
is out of bounds, we need to check whether it is greater or equal
to the maxmimum number of elements. Otherwise we can access one
more than the number of elements in the array.

Caught by coverity (#985567)

Change-Id: Id90f02eae1d5689b9b2c9a82bce0e503941387da
Reviewed-on: http://gerrit.openafs.org/9311
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
src/afs/afs_icl.c