Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108050803
D21876.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
478 B
Referenced Files
None
Subscribers
None
D21876.diff
View Options
Index: head/sys/kern/vfs_subr.c
===================================================================
--- head/sys/kern/vfs_subr.c
+++ head/sys/kern/vfs_subr.c
@@ -351,10 +351,10 @@
if (req->newptr == NULL)
return (EINVAL);
- if (req->newlen > PATH_MAX)
+ if (req->newlen >= PATH_MAX)
return (E2BIG);
- buf = malloc(PATH_MAX + 1, M_TEMP, M_WAITOK);
+ buf = malloc(PATH_MAX, M_TEMP, M_WAITOK);
error = SYSCTL_IN(req, buf, req->newlen);
if (error != 0)
goto out;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jan 21, 10:24 PM (20 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16021177
Default Alt Text
D21876.diff (478 B)
Attached To
Mode
D21876: simplify path handling in sysctl_try_reclaim_vnode
Attached
Detach File
Event Timeline
Log In to Comment