[asterisk-commits] mmichelson: tag 1.6.1.2 r209240 - /tags/1.6.1.2/main/rtp.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Jul 27 16:04:28 CDT 2009
Author: mmichelson
Date: Mon Jul 27 16:04:24 2009
New Revision: 209240
URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=209240
Log:
Merged revisions 209235 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r209235 | mmichelson | 2009-07-27 15:54:54 -0500 (Mon, 27 Jul 2009) | 5 lines
Gracefully handle malformed RTP text packets.
AST-2009-004
........
Modified:
tags/1.6.1.2/main/rtp.c
Modified: tags/1.6.1.2/main/rtp.c
URL: http://svn.asterisk.org/svn-view/asterisk/tags/1.6.1.2/main/rtp.c?view=diff&rev=209240&r1=209239&r2=209240
==============================================================================
--- tags/1.6.1.2/main/rtp.c (original)
+++ tags/1.6.1.2/main/rtp.c Mon Jul 27 16:04:24 2009
@@ -1790,6 +1790,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