3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-05 09:04:08 +00:00

Do not access beyond bounds

This commit is contained in:
Eddie Hung 2019-07-19 13:58:50 -07:00
parent 54708dfbd7
commit cb0fd05215

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]);