forked from osmocom/wireshark
MAX_MCS_INDEX is a valid array index.
The arrays have MAX_MCS_INDEX+1 entries; valid indices to from 0 to MAX_MCX_INDEX. Change-Id: Ibbd30d36cc16143482b34212b1c6ce8df9e555ab Ping-Bug: 12085 Reviewed-on: https://code.wireshark.org/review/13805 Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
parent
949c84f46d
commit
8a7b5efd84
|
@ -713,7 +713,7 @@ dissect_wlan_radio (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void
|
|||
* they have invalid values, then bail.
|
||||
*/
|
||||
if (!info_n->has_mcs_index ||
|
||||
info_n->mcs_index >= MAX_MCS_INDEX ||
|
||||
info_n->mcs_index > MAX_MCS_INDEX ||
|
||||
!info_n->has_bandwidth ||
|
||||
!info_n->has_short_gi)
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue