Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F171203264
D30586.id90200.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
528 B
Referenced Files
None
Subscribers
None
D30586.id90200.diff
View Options
Index: sys/ufs/ffs/ffs_alloc.c
===================================================================
--- sys/ufs/ffs/ffs_alloc.c
+++ 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
Thu, Sep 10, 12:07 PM (15 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38645096
Default Alt Text
D30586.id90200.diff (528 B)
Attached To
Mode
D30586: ffs: Correct the input size check in sysctl_ffs_fsck()
Attached
Detach File
Event Timeline
Log In to Comment