From a50001972f096f84686ac11321fcb5c25cda5254 Mon Sep 17 00:00:00 2001 From: kevin Date: Sun, 26 May 2013 09:34:40 -0700 Subject: [PATCH] cmDspKr.c: Added test for DBL_MAX in _cmScFolMatcherCb() to prevent invalid score measurement values from being used as parameter values. This would might be better accomplished inside cmProc4.c:cmScMeaExec(). --- dsp/cmDspKr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dsp/cmDspKr.c b/dsp/cmDspKr.c index f91440e..361a3a8 100644 --- a/dsp/cmDspKr.c +++ b/dsp/cmDspKr.c @@ -961,6 +961,7 @@ void _cmScFolMatcherCb( cmScMatcher* p, void* arg, cmScMatcherResult_t* rp ) // send 'set' values that were calculated on the previous call to cmScMeasExec() unsigned i; for(i=ap->sfp->smp->vsi; isfp->smp->nsi; ++i) + if(ap->sfp->smp->set[i].value != DBL_MAX ) { switch( ap->sfp->smp->set[i].sp->varId )