mirror of
https://github.com/YosysHQ/yosys
synced 2026-02-14 04:41:48 +00:00
blifparse: add bounds check
This commit is contained in:
parent
8bbde80e02
commit
3f1fbfdaee
1 changed files with 1 additions and 0 deletions
|
|
@ -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:;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue