mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 05:02:10 +00:00
FS-8713 #resolve avoid read exceeding buffer
This commit is contained in:
@@ -1088,6 +1088,8 @@ SWITCH_DECLARE(switch_status_t) switch_jb_put_packet(switch_jb_t *jb, switch_rtp
|
||||
uint32_t i;
|
||||
uint16_t want = ntohs(jb->next_seq), got = ntohs(packet->header.seq);
|
||||
|
||||
switch_assert(len <= SWITCH_RTP_MAX_BUF_LEN);
|
||||
|
||||
switch_mutex_lock(jb->mutex);
|
||||
|
||||
if (!want) want = got;
|
||||
|
||||
Reference in New Issue
Block a user