FreeBSD Bugzilla – Attachment 156112 Details for
Bug 144987
[wpi] [panic] injecting packets with wlaninject using Intel 3945ABG wireless card gives kernel panic
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Discard frames that are smaller than header length
patch-bug-144987.diff (text/plain), 752 bytes, created by
Andriy Voskoboinyk
on 2015-04-29 16:56:37 UTC
(
hide
)
Description:
Discard frames that are smaller than header length
Filename:
MIME Type:
Creator:
Andriy Voskoboinyk
Created:
2015-04-29 16:56:37 UTC
Size:
752 bytes
patch
obsolete
>Index: sys/net80211/ieee80211_output.c >=================================================================== >--- sys/net80211/ieee80211_output.c (revision 281839) >+++ sys/net80211/ieee80211_output.c (working copy) >@@ -569,6 +569,8 @@ > if ((wh->i_fc[0] & IEEE80211_FC0_VERSION_MASK) != > IEEE80211_FC0_VERSION_0) > senderr(EIO); /* XXX */ >+ if (m->m_pkthdr.len < ieee80211_anyhdrsize(wh)) >+ senderr(EIO); /* XXX */ > > /* locate destination node */ > switch (wh->i_fc[1] & IEEE80211_FC1_DIR_MASK) { >@@ -578,8 +580,6 @@ > break; > case IEEE80211_FC1_DIR_TODS: > case IEEE80211_FC1_DIR_DSTODS: >- if (m->m_pkthdr.len < sizeof(struct ieee80211_frame)) >- senderr(EIO); /* XXX */ > ni = ieee80211_find_txnode(vap, wh->i_addr3); > break; > default:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 144987
:
104761
| 156112