Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115927957
D34726.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
355 B
Referenced Files
None
Subscribers
None
D34726.diff
View Options
diff --git a/sys/compat/linux/linux_socket.c b/sys/compat/linux/linux_socket.c
--- a/sys/compat/linux/linux_socket.c
+++ b/sys/compat/linux/linux_socket.c
@@ -1272,6 +1272,7 @@
return (error);
if (fromlen < 0)
return (EINVAL);
+ fromlen = min(fromlen, SOCK_MAXADDRLEN);
sa = malloc(fromlen, M_SONAME, M_WAITOK);
} else {
fromlen = 0;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, May 1, 12:58 PM (16 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17881599
Default Alt Text
D34726.diff (355 B)
Attached To
Mode
D34726: linux(4): Limit user-supplied sockaddr length in recvfrom().
Attached
Detach File
Event Timeline
Log In to Comment