From: Paul Brossier Date: Sat, 24 Nov 2007 16:25:56 +0000 (+0100) Subject: mathutils.c: fix invalid read in vec_moving_thres X-Git-Tag: bzr2git~445 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4bb32f4babe960324b93d5db393d2feb59ea77a3;p=aubio.git mathutils.c: fix invalid read in vec_moving_thres --- diff --git a/src/mathutils.c b/src/mathutils.c index f82549a6..70797ecc 100644 --- a/src/mathutils.c +++ b/src/mathutils.c @@ -226,9 +226,9 @@ smpl_t vec_moving_thres(fvec_t * vec, fvec_t * tmpvec, medar[k] = vec->data[0][k+pos-post]; /* pre part of the buffer does not exist */ } else { - for (k=0;kdata[0][k+pos-post]; - for (k=length-pos+post+1;k