From 4bb32f4babe960324b93d5db393d2feb59ea77a3 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sat, 24 Nov 2007 17:25:56 +0100 Subject: [PATCH] mathutils.c: fix invalid read in vec_moving_thres --- src/mathutils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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