forked from osmocom/wireshark
SDP: protect against out of bounds access
Change-Id: I4b24441cb26757b639e8113cab18d64c7f07112f Ping-Bug: 9887 Reviewed-on: https://code.wireshark.org/review/11241 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
This commit is contained in:
parent
cc77d6c66f
commit
2ddd92b6f8
1 changed files with 1 additions and 1 deletions
|
@ -2627,7 +2627,7 @@ dissect_sdp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
|
|||
/* Free the remainded hash tables not used */
|
||||
/* XXX - more placeholder functionality */
|
||||
if (transport_info == &local_transport_info) {
|
||||
for (n = transport_info->media_count; n < SDP_MAX_RTP_CHANNELS; n++)
|
||||
for (n = MAX(transport_info->media_count, 0); n < SDP_MAX_RTP_CHANNELS; n++)
|
||||
{
|
||||
if (!transport_info->media[n].set_rtp)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue