From be70a0e48a2241ee88a6169f775e5491cb7677e7 Mon Sep 17 00:00:00 2001 From: Thierry Leconte Date: Thu, 13 Nov 2003 21:55:46 +0000 Subject: [PATCH] fix buffer overflow --- dsp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dsp.c b/dsp.c index 4cbb37f..40998eb 100755 --- a/dsp.c +++ b/dsp.c @@ -110,7 +110,7 @@ int n; } mult=(double)Fi*fr/2400.0*FreqLine; - pvbuff[n]=rsfir(&(ambuff[idxam]),rsfilter,RSFilterLen,offset,mult)*mult*2*256.0; + pvbuff[n]=rsfir(&(ambuff[idxam]),rsfilter,RSFilterLen,offset,mult)*mult*3*256.0; shift=(int)((RSMULT-offset+mult-1)/mult); offset=shift*mult+offset-RSMULT; @@ -133,10 +133,10 @@ int n,res; if(npv>0) memmove(pixelv,pixels,npv*sizeof(float)); - if(npv