Demand more information on callerid to prevent possible overruns
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3494 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
d56eb1cfe9
commit
32794ca748
|
@ -186,7 +186,7 @@ int callerid_feed(struct callerid_state *cid, unsigned char *ubuf, int len, int
|
|||
mylen += cid->oldlen/2;
|
||||
for (x=0;x<len;x++)
|
||||
buf[x+cid->oldlen/2] = AST_XLAW(ubuf[x]);
|
||||
while(mylen >= 80) {
|
||||
while(mylen >= 160) {
|
||||
olen = mylen;
|
||||
res = fsk_serie(&cid->fskd, buf, &mylen, &b);
|
||||
if (mylen < 0) {
|
||||
|
|
Reference in New Issue