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:
parent
f53901193d
commit
7dae3c4faf
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=197151
@ -1149,6 +1149,8 @@ zfs_checkexp(vfs_t *vfsp, struct sockaddr *nam, int *extflagsp,
|
||||
credanonp, numsecflavors, secflavors));
|
||||
}
|
||||
|
||||
CTASSERT(SHORT_FID_LEN <= sizeof(struct fid));
|
||||
CTASSERT(LONG_FID_LEN <= sizeof(struct fid));
|
||||
|
||||
static int
|
||||
zfs_fhtovp(vfs_t *vfsp, fid_t *fidp, vnode_t **vpp)
|
||||
|
Loading…
Reference in New Issue
Block a user