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:
parent
9fd7c97cc3
commit
a50001972f
@ -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()
|
// send 'set' values that were calculated on the previous call to cmScMeasExec()
|
||||||
unsigned i;
|
unsigned i;
|
||||||
for(i=ap->sfp->smp->vsi; i<ap->sfp->smp->nsi; ++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 )
|
switch( ap->sfp->smp->set[i].sp->varId )
|
||||||
|
Loading…
Reference in New Issue
Block a user