aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2013-06-20 22:21:24 +0000
committerPascal Quantin <pascal.quantin@gmail.com>2013-06-20 22:21:24 +0000
commitd7856ef30457ce7d89ab0c380ae7e19db772c396 (patch)
tree5e05f8b253639cbd5a28ee66213d38ed79331c6a /epan
parent176be6b48158759a1d7ff1d743fc9724025d1cd4 (diff)
Fix bug https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8829 :
Prevent an out of bounds access in 802.11 Radiotap dissector svn path=/trunk/; revision=50090
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-ieee80211-radiotap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-ieee80211-radiotap.c b/epan/dissectors/packet-ieee80211-radiotap.c
index edad20b57e..529ff4b206 100644
--- a/epan/dissectors/packet-ieee80211-radiotap.c
+++ b/epan/dissectors/packet-ieee80211-radiotap.c
@@ -1831,7 +1831,7 @@ dissect_radiotap(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree)
}
if (known & IEEE80211_RADIOTAP_VHT_HAVE_BW) {
- if (bw <= sizeof(ieee80211_vht_bw2rate_index)/sizeof(ieee80211_vht_bw2rate_index[0]))
+ if (bw < sizeof(ieee80211_vht_bw2rate_index)/sizeof(ieee80211_vht_bw2rate_index[0]))
bandwidth = ieee80211_vht_bw2rate_index[bw];
else
can_calculate_rate = FALSE; /* unknown bandwidth */