[asterisk-commits] mmichelson: trunk r209235 - /trunk/res/res_rtp_asterisk.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Jul 27 15:54:58 CDT 2009
Author: mmichelson
Date: Mon Jul 27 15:54:54 2009
New Revision: 209235
URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=209235
Log:
Gracefully handle malformed RTP text packets.
AST-2009-004
Modified:
trunk/res/res_rtp_asterisk.c
Modified: trunk/res/res_rtp_asterisk.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/res/res_rtp_asterisk.c?view=diff&rev=209235&r1=209234&r2=209235
==============================================================================
--- trunk/res/res_rtp_asterisk.c (original)
+++ trunk/res/res_rtp_asterisk.c Mon Jul 27 15:54:54 2009
@@ -2078,6 +2078,9 @@
rtp->f.subclass = AST_FORMAT_T140;
header_end = memchr(data, ((*data) & 0x7f), rtp->f.datalen);
+ if (header_end == NULL) {
+ return &ast_null_frame;
+ }
header_end++;
header_length = header_end - data;
More information about the asterisk-commits
mailing list