Page MenuHomeFreeBSD

D21876.diff
No OneTemporary

D21876.diff

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

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)

Event Timeline