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)
May 25 2024, 10:08 AM
Unknown Object (File)
May 25 2024, 1:38 AM
Unknown Object (File)
May 22 2024, 4:36 AM
Unknown Object (File)
Mar 31 2024, 9:20 PM
Unknown Object (File)
Feb 22 2024, 9:15 PM
Unknown Object (File)
Dec 20 2023, 1:23 AM
Unknown Object (File)
Dec 17 2023, 3:30 PM
Unknown Object (File)
Dec 9 2023, 6:14 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.