HomeFreeBSD

netlink: use size_t through the allocation KPI

Description

netlink: use size_t through the allocation KPI

This fixes some signedness bugs and potential underflows. The length of
nl_buf is still limited by UINT_MAX and this is asserted now.

Reviewed by: melifaro
Differential Revision: https://reviews.freebsd.org/D47551

Details

Provenance
glebiusAuthored on Dec 3 2024, 8:04 PM
Reviewer
melifaro
Differential Revision
D47551: netlink: use size_t through the allocation KPI
Parents
rG0601c0f989f2: netlink: check buffer length fits into u_int
Branches
Unknown
Tags
Unknown