1
0
mirror of synced 2026-02-20 14:45:06 +00:00

Merge pull request #5681 from YosysHQ/emil/blifparse-bounds-check

blifparse: add bounds check
This commit is contained in:
Emil J
2026-02-18 12:18:05 +01:00
committed by GitHub

View File

@@ -629,6 +629,7 @@ void parse_blif(RTLIL::Design *design, std::istream &f, IdString dff_name, bool
goto try_next_value;
}
}
log_assert(i < lutptr->size());
lutptr->set(i, !strcmp(output, "0") ? RTLIL::State::S0 : RTLIL::State::S1);
try_next_value:;
}