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().
This commit is contained in:
kevin 2013-05-26 09:34:40 -07:00
parent 9fd7c97cc3
commit a50001972f

View File

@ -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; i<ap->sfp->smp->nsi; ++i)
if(ap->sfp->smp->set[i].value != DBL_MAX )
{
switch( ap->sfp->smp->set[i].sp->varId )