Page MenuHomeFreeBSD

D6201.id.diff
No OneTemporary

D6201.id.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
Thu, Apr 9, 3:50 AM (10 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31132473
Default Alt Text
D6201.id.diff (532 B)

Event Timeline