]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r298731, r298734:
authorpfg <pfg@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 5 May 2016 01:29:53 +0000 (01:29 +0000)
committerpfg <pfg@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 5 May 2016 01:29:53 +0000 (01:29 +0000)
commitb00b9afdce1985aeae4fab861a596cb8341c2b15
tree6158d42171b9fd0b59c36ad414d7140841642868
parent43aebed7573bb567fa0f607b55d0184661e890ce
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.

git-svn-id: svn://svn.freebsd.org/base/stable/10@299103 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/compat/ndis/subr_ndis.c