Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102596945
D47550.id146381.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
381 B
Referenced Files
None
Subscribers
None
D47550.id146381.diff
View Options
diff --git a/sys/netlink/netlink_io.c b/sys/netlink/netlink_io.c
--- a/sys/netlink/netlink_io.c
+++ b/sys/netlink/netlink_io.c
@@ -58,6 +58,9 @@
{
struct nl_buf *nb;
+ KASSERT(len > 0 && len <= UINT_MAX, ("%s: invalid length %zu",
+ __func__, len));
+
nb = malloc(sizeof(struct nl_buf) + len, M_NETLINK, mflag);
if (__predict_true(nb != NULL)) {
nb->buflen = len;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 15, 2:11 PM (16 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14634200
Default Alt Text
D47550.id146381.diff (381 B)
Attached To
Mode
D47550: netlink: check buffer length fits into u_int
Attached
Detach File
Event Timeline
Log In to Comment