forked from osmocom/wireshark
WiMax DLMAP: Fix a large loop.
Make sure we advance our offset. Bug: 16383 Ping-Bug: 16368 Change-Id: I4949cb0988601dbe545d0bc22de4d654b4e61204 Reviewed-on: https://code.wireshark.org/review/36085 Reviewed-by: Gerald Combs <gerald@wireshark.org> Petri-Dish: Gerald Combs <gerald@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
04648c2174
commit
6dad599a8a
|
@ -2388,6 +2388,7 @@ gint wimax_decode_dlmapc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *base_tre
|
|||
{
|
||||
expert_add_info_format(pinfo, ti, &ei_mac_header_invalid_length,
|
||||
"Invalid length: %d.", mac_len);
|
||||
return sizeof(mac_crc);
|
||||
}
|
||||
else if (MIN(tvb_len, tvb_reported_length(tvb)) >= mac_len)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue