mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-27 14:41:58 +00:00
Demand more information on callerid to prevent possible overruns
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3494 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -186,7 +186,7 @@ int callerid_feed(struct callerid_state *cid, unsigned char *ubuf, int len, int
|
|||||||
mylen += cid->oldlen/2;
|
mylen += cid->oldlen/2;
|
||||||
for (x=0;x<len;x++)
|
for (x=0;x<len;x++)
|
||||||
buf[x+cid->oldlen/2] = AST_XLAW(ubuf[x]);
|
buf[x+cid->oldlen/2] = AST_XLAW(ubuf[x]);
|
||||||
while(mylen >= 80) {
|
while(mylen >= 160) {
|
||||||
olen = mylen;
|
olen = mylen;
|
||||||
res = fsk_serie(&cid->fskd, buf, &mylen, &b);
|
res = fsk_serie(&cid->fskd, buf, &mylen, &b);
|
||||||
if (mylen < 0) {
|
if (mylen < 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user