Page MenuHomeFreeBSD

net80211: fix possible overflow in IEEE80211_TU_TO_TICKS()
ClosedPublic

Authored by avos on Feb 13 2016, 9:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 23, 8:52 PM
Unknown Object (File)
Sun, Nov 23, 5:25 PM
Unknown Object (File)
Sun, Nov 23, 9:33 AM
Unknown Object (File)
Fri, Nov 21, 12:51 AM
Unknown Object (File)
Fri, Nov 21, 12:49 AM
Unknown Object (File)
Fri, Nov 21, 12:47 AM
Unknown Object (File)
Fri, Nov 21, 12:45 AM
Unknown Object (File)
Thu, Nov 20, 3:11 AM
Subscribers

Details

Summary

For hz=1000 any number, greater than 4194 causes integer overflow; this change casts the number to uint64_t before operating with it.

Test Plan

Should be reproducible with:
beacon interval: 300
beacon miss threshold: 15

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

avos retitled this revision from to net80211: fix possible overflow in IEEE80211_TU_TO_TICKS().
avos updated this object.
avos edited the test plan for this revision. (Show Details)
avos added a reviewer: adrian.
avos set the repository for this revision to rS FreeBSD src repository - subversion.
adrian edited edge metadata.
This revision is now accepted and ready to land.Mar 4 2016, 1:36 AM
This revision was automatically updated to reflect the committed changes.