Page MenuHomeFreeBSD

D30586.diff
No OneTemporary

D30586.diff

diff --git a/sys/ufs/ffs/ffs_alloc.c b/sys/ufs/ffs/ffs_alloc.c
--- a/sys/ufs/ffs/ffs_alloc.c
+++ b/sys/ufs/ffs/ffs_alloc.c
@@ -3211,9 +3211,9 @@
cap_rights_t rights;
int filetype, error;
- if (req->newlen > sizeof cmd)
+ if (req->newptr == NULL || req->newlen > sizeof(cmd))
return (EBADRPC);
- if ((error = SYSCTL_IN(req, &cmd, sizeof cmd)) != 0)
+ if ((error = SYSCTL_IN(req, &cmd, sizeof(cmd))) != 0)
return (error);
if (cmd.version != FFS_CMD_VERSION)
return (ERPCMISMATCH);

File Metadata

Mime Type
text/plain
Expires
Wed, Jan 8, 11:54 PM (3 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15727432
Default Alt Text
D30586.diff (497 B)

Event Timeline