aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorXiretza <xiretza@xiretza.xyz>2021-03-15 15:55:18 +0100
committerMarcelina Koƛcielnicka <mwk@0x04.net>2021-03-18 13:50:13 +0100
commit3aa10e90ba1d57e4d01c199396a52fbd1a66fa7e (patch)
tree89c3bae745c3f75a2d299cb137abab28ef6df357 /tests
parentf4298b057ae0939b83283c8c7431097e71a32b62 (diff)
downloadyosys-3aa10e90ba1d57e4d01c199396a52fbd1a66fa7e.tar.gz
yosys-3aa10e90ba1d57e4d01c199396a52fbd1a66fa7e.tar.bz2
yosys-3aa10e90ba1d57e4d01c199396a52fbd1a66fa7e.zip
modtools: fix use-after-free of cell pointers in ModWalker
cell_inputs and cell_outputs retain cell pointers as their keys across invocations of setup(), which may however be invalidated in the meantime (as happens in e.g. passes/opt/share.cc:1432). A later rehash of the dicts (caused by inserting in ModWalker::add_wire()) will cause them to be dereferenced.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions