Tight array index guard in packet-umts_fp.c

Fixes bug #9828.

Change-Id: I69b02a0d51921bae77850b599144f35a4fe9ee33
Reviewed-on: https://code.wireshark.org/review/560
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Evan Huus 2014-03-08 12:37:50 -05:00 committed by Anders Broman
parent 5f165781f1
commit ddd9d274b9
1 changed files with 1 additions and 1 deletions

View File

@ -3985,7 +3985,7 @@ fp_set_per_packet_inf_from_conv(umts_fp_conversation_info_t *p_conv_data,
}
tb_bit_off = (2+p_conv_data->num_dch_in_flow)*8; /*Point to the C/T of first TB*/
/*Set configuration for individual blocks*/
for(j=0; j < num_tbs; j++){
for(j=0; j < num_tbs && j+chan < MAX_MAC_FRAMES; j++){
/*Set transport channel id (useful for debugging)*/
macinf->trchid[j+chan] = p_conv_data->dchs_in_flow_list[chan];