From: Mark Spencer Date: Fri, 23 Jul 2004 00:27:26 +0000 (+0000) Subject: Demand more information on callerid to prevent possible overruns X-Git-Tag: 1.0.0-rc2~110 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=832da92bdc0f74d230ab3cb13aee95ffc8255f10;p=thirdparty%2Fasterisk.git 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 --- diff --git a/callerid.c b/callerid.c index 544345beaf..283a5dee8a 100755 --- a/callerid.c +++ b/callerid.c @@ -186,7 +186,7 @@ int callerid_feed(struct callerid_state *cid, unsigned char *ubuf, int len, int mylen += cid->oldlen/2; for (x=0;xoldlen/2] = AST_XLAW(ubuf[x]); - while(mylen >= 80) { + while(mylen >= 160) { olen = mylen; res = fsk_serie(&cid->fskd, buf, &mylen, &b); if (mylen < 0) {