Fix use-after-free in LUT opt pass
authorStefanBruens <stefan.bruens@rwth-aachen.de>
Tue, 22 Dec 2020 02:23:42 +0000 (03:23 +0100)
committerGitHub <noreply@github.com>
Tue, 22 Dec 2020 02:23:42 +0000 (03:23 +0100)
commit9396678db4f0e32192e73697c012d25432d602ca
tree1d955725c8d8f80eb24deb21ceb9553586c609a2
parent3e67ab1ebb62a1cc69f2cb02546ae8b1cf838e07
Fix use-after-free in LUT opt pass

RTLIL::Module::remove(Cell* cell) calls `delete cell`.

Any subsequent accesses of `cell` then causes undefined behavior.
passes/opt/opt_lut.cc