mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +00:00
Add additional length check to IEEE 802.11 analyzer
This commit is contained in:
parent
df0788252e
commit
7782f73251
1 changed files with 6 additions and 0 deletions
|
@ -31,6 +31,12 @@ bool IEEE802_11Analyzer::AnalyzePacket(size_t len, const uint8_t* data, Packet*
|
|||
if ( (data[1] & 0x03) == 0x03 )
|
||||
len_80211 += packet->L2_ADDR_LEN;
|
||||
|
||||
if ( len_80211 >= len )
|
||||
{
|
||||
Weird("truncated_802_11_header", packet);
|
||||
return false;
|
||||
}
|
||||
|
||||
// Look for the QoS indicator bit.
|
||||
if ( (fc_80211 >> 4) & 0x08 )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue