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:
Guy Harris 2016-02-07 12:46:45 -08:00
parent 949c84f46d
commit 8a7b5efd84
1 changed files with 1 additions and 1 deletions

View File

@ -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;