瀏覽代碼

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 11 年之前
父節點
當前提交
a50001972f
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1
    0
      dsp/cmDspKr.c

+ 1
- 0
dsp/cmDspKr.c 查看文件

@@ -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…
取消
儲存