]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Revert "FS-8713 #resolve avoid read exceeding buffer"
authorSeven Du <dujinfang@gmail.com>
Thu, 7 Jan 2016 09:00:48 +0000 (17:00 +0800)
committerSeven Du <dujinfang@gmail.com>
Thu, 7 Jan 2016 09:00:48 +0000 (17:00 +0800)
This reverts commit 1746d2ebc026e54aac35304b8885f385bb1067da.

src/switch_jitterbuffer.c
src/switch_rtp.c

index 1bfc63fce22d844701f37f594c4ded7c5ef08b3c..3d096c764d5603e15607e3802474d79252ea5d9c 100644 (file)
@@ -1088,8 +1088,6 @@ 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;
index d88de1e89e3f93aa0e1d13ce8e310db32c6f4dd2..5646b8e86e9c09ad511921530892a4132c7a3546 100644 (file)
@@ -5132,7 +5132,7 @@ static switch_status_t read_rtp_packet(switch_rtp_t *rtp_session, switch_size_t
                block = 0;
        }
        
-       *bytes = SWITCH_RTP_MAX_BUF_LEN;
+       *bytes = sizeof(rtp_msg_t);
        sync = 0;
 
        rtp_session->has_rtp = 0;