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

This commit is contained in:
kevin 2013-05-01 15:06:05 -07:00
parent 3f1821b0be
commit ca3fb3ec80

View File

@ -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;
}