libafs/dir: Verify directory pathnames
authorSimon Wilkinson <sxw@your-file-system.com>
Sat, 16 Jul 2011 21:57:55 +0000 (22:57 +0100)
committerDerrick Brashear <shadow@dementix.org>
Sat, 13 Aug 2011 12:56:20 +0000 (05:56 -0700)
commitd1946ffe9be0031a2daf907f5e96cf0ee7f5e15e
tree5485a7f581e49a11ed1af21e58065cd08751db00
parent6f725c441529ccd1616adeda19c7c0b43dcfd9cb
libafs/dir: Verify directory pathnames

Provide a new routine, afs_dir_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.

Change-Id: I4b3bbb95cb49645a8ac52e6061f9e24f89924831
Reviewed-on: http://gerrit.openafs.org/5241
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