ndis(4): unsign some indexes to prevent overflows.
authorpfg <pfg@FreeBSD.org>
Thu, 28 Apr 2016 01:58:56 +0000 (01:58 +0000)
committerpfg <pfg@FreeBSD.org>
Thu, 28 Apr 2016 01:58:56 +0000 (01:58 +0000)
commita83b4b7b6ac6143ffdafbf856295f1f2fb205423
treefcf6be0bd437de4632bed16be05d50509863c05f
parentb49c9dcfdd7bfd4d814d63a9ee416345e5efb17c
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
sys/compat/ndis/subr_ndis.c