Do not access beyond bounds

This commit is contained in:
Eddie Hung 2019-07-19 13:58:50 -07:00
parent 54708dfbd7
commit cb0fd05215
1 changed files with 1 additions and 1 deletions

View File

@ -372,7 +372,7 @@ struct WreduceWorker
int i;
for (i = 0; i < GetSize(sig); i++) {
if (B[i] != S0 && (sub || A[i] != S0))
if (B.at(i, Sx) != S0 && (sub || A.at(i, Sx) != S0))
break;
if (B[i] == S0)
module->connect(sig[i], A[i]);