]> git.michaelhowe.org Git - packages/o/openafs.git/commit
libafs/dir: Verify directory pathnames
authorSimon Wilkinson <sxw@your-file-system.com>
Sat, 16 Jul 2011 22:30:59 +0000 (23:30 +0100)
committerDerrick Brashear <shadow@dementix.org>
Sun, 14 Aug 2011 02:16:38 +0000 (19:16 -0700)
commita1e2aeb3f060c15313b271bfc66b7797c8cadf1f
treeffb6bd96d0f303861ae04857d503d99278f18575
parent8c2711baff2403ed13131e13c244879fd39a9a0c
libafs/dir: Verify directory pathnames

Provide a new routine, GetVerifiedBlob() which will ensure that the
pathname contained within a directory blob is correctly terminated
before returning it to the caller. For the purposes of this function,
correct termination is defined as having a terminating \0 character
within the same directory page as the blob itself.
(cherry picked from commit d1946ffe9be0031a2daf907f5e96cf0ee7f5e15e)

Change-Id: I69b9465f02417babf9b1d5179197278fac64f192
Reviewed-on: http://gerrit.openafs.org/5249
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
src/afs/LINUX/osi_vnodeops.c
src/afs/VNOPS/afs_vnop_readdir.c
src/dir/dir.c
src/dir/dir.h