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)
Tue, Oct 7, 9:50 PM
Unknown Object (File)
Sep 17 2025, 12:41 PM
Unknown Object (File)
Sep 10 2025, 4:32 PM
Unknown Object (File)
Aug 14 2025, 9:14 PM
Unknown Object (File)
Aug 14 2025, 9:07 PM
Unknown Object (File)
Aug 2 2025, 2:26 AM
Unknown Object (File)
Jul 31 2025, 9:37 AM
Unknown Object (File)
Jul 26 2025, 10:44 PM
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.