[Asterisk-code-review] res rtp asterisk: Drop rtcp packets less than 2 words in le... (asterisk[14])
George Joseph
asteriskteam at digium.com
Wed Sep 6 15:30:03 CDT 2017
George Joseph has uploaded this change for review. ( https://gerrit.asterisk.org/6444
Change subject: res_rtp_asterisk: Drop rtcp packets less than 2 words in length
......................................................................
res_rtp_asterisk: Drop rtcp packets less than 2 words in length
Don't bother checking anything else.
Change-Id: I67d89e3c27db83efa0e6b52734f73c88ac2939e2
---
M res/res_rtp_asterisk.c
1 file changed, 5 insertions(+), 0 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/44/6444/1
diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c
index acc61c7..1701e86 100644
--- a/res/res_rtp_asterisk.c
+++ b/res/res_rtp_asterisk.c
@@ -4603,6 +4603,11 @@
ast_debug(1, "Got RTCP report of %zu bytes\n", size);
+ if (packetwords < 2) {
+ ast_debug(1, "RTCP frame size (%d words) is shorter than 2 words\n", packetwords);
+ return f;
+ }
+
while (position < packetwords) {
int i, pt, rc;
unsigned int length;
--
To view, visit https://gerrit.asterisk.org/6444
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 14
Gerrit-MessageType: newchange
Gerrit-Change-Id: I67d89e3c27db83efa0e6b52734f73c88ac2939e2
Gerrit-Change-Number: 6444
Gerrit-PatchSet: 1
Gerrit-Owner: George Joseph <gjoseph at digium.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20170906/547ec26a/attachment.html>
More information about the asterisk-code-review
mailing list