forked from osmocom/wireshark
Don't pass an invalid length to proto_item_set_len
Fixes bug #9818. Change-Id: I4fb4cf2b5b31ed6efc55a48df67f2ec4949d47c3 Reviewed-on: https://code.wireshark.org/review/442 Reviewed-by: Evan Huus <eapache@gmail.com>
This commit is contained in:
parent
9afdd44eec
commit
a79fbf0397
1 changed files with 2 additions and 1 deletions
|
@ -3926,7 +3926,8 @@ static void decode_ServiceContextList(tvbuff_t *tvb, packet_info *pinfo, proto_t
|
|||
stream_is_be, boundary,
|
||||
&encapsulation_is_be , &encapsulation_boundary);
|
||||
|
||||
proto_item_set_len(tf_st1, 8 + context_data_len);
|
||||
if ((int)(8 + context_data_len) >= 8)
|
||||
proto_item_set_len(tf_st1, 8 + context_data_len);
|
||||
sub_tree1 = proto_item_add_subtree (tf_st1, ett_giop_scl_st1);
|
||||
|
||||
if (context_data_len == 0)
|
||||
|
|
Loading…
Reference in a new issue