[xiph-commits] r11105 - trunk/speex/libspeex
jm at svn.xiph.org
jm at svn.xiph.org
Fri Apr 7 08:18:51 PDT 2006
Author: jm
Date: 2006-04-07 08:18:49 -0700 (Fri, 07 Apr 2006)
New Revision: 11105
Modified:
trunk/speex/libspeex/ltp.c
Log:
oops. Fixed an off-by-one that could (at least theoretically) cause stack
corruption. Thanks valgrind!
Modified: trunk/speex/libspeex/ltp.c
===================================================================
--- trunk/speex/libspeex/ltp.c 2006-04-07 15:08:30 UTC (rev 11104)
+++ trunk/speex/libspeex/ltp.c 2006-04-07 15:18:49 UTC (rev 11105)
@@ -204,7 +204,7 @@
energy[0]=inner_prod(swn-start, swn-start, len);
e0=inner_prod(swn, swn, len);
- for (i=start;i<=end;i++)
+ for (i=start;i<end;i++)
{
/* Update energy for next pitch*/
energy[i-start+1] = SUB32(ADD32(energy[i-start],SHR32(MULT16_16(swn[-i-1],swn[-i-1]),6)), SHR32(MULT16_16(swn[-i+len-1],swn[-i+len-1]),6));
More information about the commits
mailing list