Page MenuHomeFreeBSD

D6201.1794833245.diff
No OneTemporary

Authored By
Unknown
Size
532 B
Referenced Files
None
Subscribers
None

D6201.1794833245.diff

Index: head/sys/fs/nfs/nfs_commonsubs.c
===================================================================
--- head/sys/fs/nfs/nfs_commonsubs.c
+++ head/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

Mime Type
text/plain
Expires
Mon, Nov 16, 12:47 PM (21 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41778294
Default Alt Text
D6201.1794833245.diff (532 B)

Event Timeline