From 2f42fda6004d14bef324399a6ae0d3b672b8c99f Mon Sep 17 00:00:00 2001 From: Jaap Keuter Date: Sat, 14 Dec 2019 23:02:44 +0100 Subject: H265: properly index 2D array (CID 1450950) In the expression it seems to simply have been missed this is a 2D array. Adding the 2nd index, as elsewhere in this function. Change-Id: I21ce5a6fa70408f84cb61bbd09e7d3aeff9c1d85 Reviewed-on: https://code.wireshark.org/review/35441 Reviewed-by: Jaap Keuter Petri-Dish: Jaap Keuter Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman --- epan/dissectors/packet-h265.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'epan/dissectors/packet-h265.c') diff --git a/epan/dissectors/packet-h265.c b/epan/dissectors/packet-h265.c index 6d4ac36577..b3d669e0a1 100644 --- a/epan/dissectors/packet-h265.c +++ b/epan/dissectors/packet-h265.c @@ -1826,12 +1826,12 @@ dissect_h265_profile_tier_level(proto_tree* tree, tvbuff_t* tvb, packet_info* pi } if ((sub_layer_profile_idc[i] >= 1 && sub_layer_profile_idc[i] <= 5) || sub_layer_profile_idc[i] == 9 || - sub_layer_profile_compatibility_flag[1] || - sub_layer_profile_compatibility_flag[2] || - sub_layer_profile_compatibility_flag[3] || - sub_layer_profile_compatibility_flag[4] || - sub_layer_profile_compatibility_flag[5] || - sub_layer_profile_compatibility_flag[9]) { + sub_layer_profile_compatibility_flag[i][1] || + sub_layer_profile_compatibility_flag[i][2] || + sub_layer_profile_compatibility_flag[i][3] || + sub_layer_profile_compatibility_flag[i][4] || + sub_layer_profile_compatibility_flag[i][5] || + sub_layer_profile_compatibility_flag[i][9]) { /* The number of bits in this syntax structure is not affected by this condition */ proto_tree_add_bits_item(tree, hf_h265_sub_layer_inbld_flag, tvb, bit_offset, 1, ENC_BIG_ENDIAN); bit_offset++; -- cgit v1.2.3