Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177609640
D6201.1794833243.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
516 B
Referenced Files
None
Subscribers
None
D6201.1794833243.diff
View Options
Index: sys/fs/nfs/nfs_commonsubs.c
===================================================================
--- sys/fs/nfs/nfs_commonsubs.c
+++ sys/fs/nfs/nfs_commonsubs.c
@@ -3174,6 +3174,10 @@
static int onethread = 0;
static time_t lasttime = 0;
+ if (nidp->nid_namelen < 0 || nidp->nid_namelen > MAXHOSTNAMELEN) {
+ error = EINVAL;
+ goto out;
+ }
if (nidp->nid_flag & NFSID_INITIALIZE) {
cp = malloc(nidp->nid_namelen + 1, M_NFSSTRING, M_WAITOK);
error = copyin(CAST_USER_ADDR_T(nidp->nid_name), cp,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 16, 12:47 PM (21 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41778293
Default Alt Text
D6201.1794833243.diff (516 B)
Attached To
Mode
D6201: Add nid_namelen bounds check to nfssvc system call
Attached
Detach File
Event Timeline