1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00

Be sure not to overflow struct fid.

MFC after:	3 days
This commit is contained in:
Pawel Jakub Dawidek 2009-09-13 10:25:33 +00:00
parent f53901193d
commit 7dae3c4faf
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=197151

View File

@ -1149,6 +1149,8 @@ zfs_checkexp(vfs_t *vfsp, struct sockaddr *nam, int *extflagsp,
credanonp, numsecflavors, secflavors)); credanonp, numsecflavors, secflavors));
} }
CTASSERT(SHORT_FID_LEN <= sizeof(struct fid));
CTASSERT(LONG_FID_LEN <= sizeof(struct fid));
static int static int
zfs_fhtovp(vfs_t *vfsp, fid_t *fidp, vnode_t **vpp) zfs_fhtovp(vfs_t *vfsp, fid_t *fidp, vnode_t **vpp)