HomeFreeBSD

MFC r298731, r298734:

Description

MFC r298731, r298734:
ndis(4): unsign some indexes to prevent overflows.

The "len" parameter is uint32_t, indexing it with an int may
end up in a signed integer overflow.

strlen(3) returns an integer of size_t but a correponding index
of type u_int is more than enough.

Details

Provenance
pfgAuthored on
Parents
rS299104: - Make generic FIREWALL service; make ipfilter, ipfw, and pf PROVIDE that
Branches
Unknown
Tags
Unknown