Merge remote-tracking branch 'origin/GP-5077_PR-6373_ekilmer_cpp-add-missing-index-check'

This commit is contained in:
Ryan Kurtz 2024-10-31 06:19:00 -04:00
commit ee5c436939

View File

@ -1848,7 +1848,7 @@ void IfcProtooverride::execute(istream &s)
s >> ws;
Address callpoint(parse_machaddr(s,discard,*dcp->conf->types));
int4 i;
for(i=0;dcp->fd->numCalls();++i)
for(i=0;i<dcp->fd->numCalls();++i)
if (dcp->fd->getCallSpecs(i)->getOp()->getAddr() == callpoint) break;
if (i == dcp->fd->numCalls())
throw IfaceExecutionError("No call is made at this address");