Page MenuHomeFreeBSD

D5662.diff
No OneTemporary

D5662.diff

Index: sys/fs/pseudofs/pseudofs_vnops.c
===================================================================
--- sys/fs/pseudofs/pseudofs_vnops.c
+++ sys/fs/pseudofs/pseudofs_vnops.c
@@ -458,7 +458,7 @@
PFS_RETURN (EOPNOTSUPP);
/* shortcut: check if the name is too long */
- if (cnp->cn_namelen >= PFS_NAMELEN)
+ if (cnp->cn_namelen < 0 || cnp->cn_namelen >= PFS_NAMELEN)
PFS_RETURN (ENOENT);
/* check that parent directory is visible... */
Index: sys/kern/uipc_mqueue.c
===================================================================
--- sys/kern/uipc_mqueue.c
+++ sys/kern/uipc_mqueue.c
@@ -849,7 +849,7 @@
return (error);
/* shortcut: check if the name is too long */
- if (cnp->cn_namelen >= MQFS_NAMELEN)
+ if (cnp->cn_namelen < 0 || cnp->cn_namelen >= MQFS_NAMELEN)
return (ENOENT);
/* self */

File Metadata

Mime Type
text/plain
Expires
Fri, Oct 2, 5:14 AM (18 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40062013
Default Alt Text
D5662.diff (932 B)

Event Timeline