Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106952202
D30586.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
497 B
Referenced Files
None
Subscribers
None
D30586.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D30586: ffs: Correct the input size check in sysctl_ffs_fsck()
Attached
Detach File
Event Timeline
Log In to Comment