Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F174183701
D5662.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
932 B
Referenced Files
None
Subscribers
None
D5662.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D5662: Fix for improper bound checking on cn_namelen
Attached
Detach File
Event Timeline
Log In to Comment