Page MenuHomeFreeBSD

D34726.diff
No OneTemporary

D34726.diff

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

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)

Event Timeline