projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33a48e2
)
Gracefully handle malformed RTP text packets.
author
Mark Michelson
<mmichelson@digium.com>
Mon, 27 Jul 2009 20:54:54 +0000
(20:54 +0000)
committer
Mark Michelson
<mmichelson@digium.com>
Mon, 27 Jul 2009 20:54:54 +0000
(20:54 +0000)
AST-2009-004
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@209235
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
res/res_rtp_asterisk.c
patch
|
blob
|
history
diff --git
a/res/res_rtp_asterisk.c
b/res/res_rtp_asterisk.c
index
edf1d72
..
d281fa5
100644
(file)
--- a/
res/res_rtp_asterisk.c
+++ b/
res/res_rtp_asterisk.c
@@
-2078,6
+2078,9
@@
static struct ast_frame *ast_rtp_read(struct ast_rtp_instance *instance, int rtc
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;