mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-26 18:33:19 +02:00
madwifi: add some extra sanity checking
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12006 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
ef0bb0a891
commit
d992c163f7
12
package/madwifi/patches/373-sanity_check.patch
Normal file
12
package/madwifi/patches/373-sanity_check.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
--- a/net80211/ieee80211_input.c
|
||||||
|
+++ b/net80211/ieee80211_input.c
|
||||||
|
@@ -238,6 +238,9 @@
|
||||||
|
if (vap->iv_opmode == IEEE80211_M_MONITOR)
|
||||||
|
goto out;
|
||||||
|
|
||||||
|
+ if (!skb->data)
|
||||||
|
+ goto out;
|
||||||
|
+
|
||||||
|
if (skb->len < sizeof(struct ieee80211_frame_min)) {
|
||||||
|
IEEE80211_DISCARD_MAC(vap, IEEE80211_MSG_ANY,
|
||||||
|
ni->ni_macaddr, NULL,
|
@ -11,7 +11,7 @@
|
|||||||
#define IEEE80211_QOS_TXOP 0x00ff
|
#define IEEE80211_QOS_TXOP 0x00ff
|
||||||
--- a/net80211/ieee80211_input.c
|
--- a/net80211/ieee80211_input.c
|
||||||
+++ b/net80211/ieee80211_input.c
|
+++ b/net80211/ieee80211_input.c
|
||||||
@@ -414,7 +414,7 @@
|
@@ -417,7 +417,7 @@
|
||||||
tid = 0;
|
tid = 0;
|
||||||
rxseq = le16toh(*(__le16 *)wh->i_seq);
|
rxseq = le16toh(*(__le16 *)wh->i_seq);
|
||||||
if ((wh->i_fc[1] & IEEE80211_FC1_RETRY) &&
|
if ((wh->i_fc[1] & IEEE80211_FC1_RETRY) &&
|
||||||
|
Loading…
Reference in New Issue
Block a user