Page MenuHomeFreeBSD

D47550.id146381.diff
No OneTemporary

D47550.id146381.diff

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

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)

Event Timeline