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
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@209237
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
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;