cmRtSys.c: cmRtSysContext() now checks validity of rtSubIdx.

This commit is contained in:
kevin 2013-05-01 15:06:05 -07:00
父節點 3f1821b0be
當前提交 ca3fb3ec80

查看文件

@ -1220,6 +1220,9 @@ cmRtSysCtx_t* cmRtSysContext( cmRtSysH_t h, unsigned rtSubIdx )
if( _cmRtSysVerifyInit(p,true) != kOkRtRC )
return NULL;
if( rtSubIdx >= p->ssCnt )
return NULL;
return &p->ssArray[rtSubIdx].ctx;
}