Windows: AFSRetrieveParentPath handle no parent
authorJeffrey Altman <jaltman@your-file-system.com>
Tue, 9 Jun 2015 12:44:43 +0000 (08:44 -0400)
committerJeffrey Altman <jaltman@your-file-system.com>
Thu, 24 Sep 2015 04:19:00 +0000 (00:19 -0400)
commit456b68ccb6d8ad31b735d2c08d0313963ff66c22
tree22ace99d2f19d166b1c8f57ee18eaf4847e3db65
parentaf7f7da0aad29ff9bf5adad288b512d31954b36e
Windows: AFSRetrieveParentPath handle no parent

AFSRetrieveParentPath() when presented with a relative path that has no
parent will walk off the front of the FullFileName buffer.  Add checks to
ensure that Length never becomes less than zero.

Change-Id: I7d619dc569d6c002b1d236a9340921414c51647f
Reviewed-on: http://gerrit.openafs.org/11888
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
src/WINNT/afsrdr/kernel/lib/AFSGeneric.cpp