mirror of
https://github.com/asterisk/asterisk.git
synced 2025-12-05 12:41:49 +00:00
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 ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@209238 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1834,6 +1834,9 @@ struct ast_frame *ast_rtp_read(struct ast_rtp *rtp)
|
||||
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user