]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r298556:
authorpfg <pfg@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 3 May 2016 15:06:29 +0000 (15:06 +0000)
committerpfg <pfg@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 3 May 2016 15:06:29 +0000 (15:06 +0000)
commitfa91062d98f45a10031675473a8692984fb4b0b9
tree87154d36345f250e1b4158377ff4709da6f58dae
parent22b629bdd3c3eaf3621b30b25d88a685f428cad9
MFC r298556:

ifconfig: prevent some improbable signed integer overflows.

ic_nchans, from struct:ieee80211req_chaninfo, is an unsigned int.
Use an unsigned index to prevent overflowing the index.

Adopt unsigned integers in other cases where it is useful
to be aware of the unsigned quantities and there is no
risk of the values being negative.

git-svn-id: svn://svn.freebsd.org/base/stable/9@298980 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sbin/ifconfig/ifieee80211.c