HomeFreeBSD

ndis(4): unsign some indexes to prevent overflows.

Description

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 so the corresponding index should
have that size.

MFC after: 1 week

Details

Provenance
pfgAuthored on
Parents
rS298730: tcp/lro: Fix more typo
Branches
Unknown
Tags
Unknown