HomeFreeBSD

MFC r343238:

Description

MFC r343238:
urtw(4): add length checks in Rx path.

  • Check if buffer can contain Rx descriptor before accessing it.
  • Verify upper / lower bounds for frame length.
  • Do not pass too short frames into ieee80211_find_rxnode().

While here:

  • Move cleanup to the function end.
  • Reuse IEEE80211_IS_DATA() macro.

Details

Provenance
avosAuthored on
Parents
rS343513: MFC r343234:
Branches
Unknown
Tags
Unknown