]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r298556:
authorpfg <pfg@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 3 May 2016 15:04:56 +0000 (15:04 +0000)
committerpfg <pfg@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 3 May 2016 15:04:56 +0000 (15:04 +0000)
commit17e7b140a3fcb41df8cf86d0284a36f854fc7779
treef096e9678feb1739701e9e0608191b3a2d54f6ad
parentfa05d833f857371a0a07075fffdbd673d4560984
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/10@298979 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sbin/ifconfig/ifieee80211.c