Explorar el Código

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().
master
kevin hace 11 años
padre
commit
a50001972f
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1
    0
      dsp/cmDspKr.c

+ 1
- 0
dsp/cmDspKr.c Ver fichero

@@ -961,6 +961,7 @@ void _cmScFolMatcherCb( cmScMatcher* p, void* arg, cmScMatcherResult_t* rp )
961 961
     // send 'set' values that were calculated on the previous call to cmScMeasExec()
962 962
     unsigned i;
963 963
     for(i=ap->sfp->smp->vsi; i<ap->sfp->smp->nsi; ++i)
964
+      if(ap->sfp->smp->set[i].value != DBL_MAX )
964 965
     {
965 966
 
966 967
       switch( ap->sfp->smp->set[i].sp->varId )

Loading…
Cancelar
Guardar