GSM A BSSMAP: fix Number Of MSs IE dissection
This IE is of TV type, not TLV type, so there is no length check to perform. Bug: 15237 Change-Id: Iafee6e43984d70cd046452687518b9cad5d30957 Reviewed-on: https://code.wireshark.org/review/30364 Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
This commit is contained in:
parent
15258cbcb6
commit
dc7d81034a
|
@ -1126,7 +1126,7 @@ be_tmsi(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, gui
|
|||
* [2] 3.2.2.8 Number Of MSs
|
||||
*/
|
||||
static guint16
|
||||
be_num_ms(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len _U_, gchar *add_string _U_, int string_len _U_)
|
||||
be_num_ms(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo _U_, guint32 offset, guint len _U_, gchar *add_string _U_, int string_len _U_)
|
||||
{
|
||||
guint32 curr_offset;
|
||||
|
||||
|
@ -1135,7 +1135,7 @@ be_num_ms(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, g
|
|||
proto_tree_add_item(tree, hf_gsm_a_bssmap_num_ms, tvb, curr_offset, 1, ENC_BIG_ENDIAN);
|
||||
curr_offset++;
|
||||
|
||||
EXTRANEOUS_DATA_CHECK(len, curr_offset - offset, pinfo, &ei_gsm_a_bssmap_extraneous_data);
|
||||
/* no length check possible */
|
||||
|
||||
return(curr_offset - offset);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue