Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177540211
D61461.1794667295.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
731 B
Referenced Files
None
Subscribers
None
D61461.1794667295.diff
View Options
diff --git a/sys/kern/vfs_extattr.c b/sys/kern/vfs_extattr.c
--- a/sys/kern/vfs_extattr.c
+++ b/sys/kern/vfs_extattr.c
@@ -737,7 +737,7 @@
sizep = NULL;
cnt = 0;
if (auiop != NULL) {
- if (auiop->uio_resid > IOSIZE_MAX)
+ if (auiop->uio_resid < 0 || auiop->uio_resid > IOSIZE_MAX)
return (EINVAL);
cnt = auiop->uio_resid;
} else
@@ -787,6 +787,9 @@
struct uio auio, *auiop;
struct iovec aiov;
+ if (nbytes > IOSIZE_MAX)
+ return (EINVAL);
+
if (data != NULL) {
aiov.iov_base = data;
aiov.iov_len = nbytes;
@@ -870,6 +873,9 @@
struct uio auio, *auiop;
struct iovec aiov;
+ if (nbytes > IOSIZE_MAX)
+ return (EINVAL);
+
if (data != NULL) {
aiov.iov_base = data;
aiov.iov_len = nbytes;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 14, 2:41 PM (10 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41701869
Default Alt Text
D61461.1794667295.diff (731 B)
Attached To
Mode
D61461: extattr_list*: avoid panic with absurd buffer lengths
Attached
Detach File
Event Timeline