get_ports bus[subscript_out_of_bounds]

Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
James Cherry 2023-07-07 09:27:25 -07:00
parent c8c98c76ea
commit f992c1c05c
1 changed files with 2 additions and 1 deletions

View File

@ -95,7 +95,8 @@ Network::findPortsMatching(const Cell *cell,
else {
// bus[0]
Port *port_bit = findBusBit(port, from);
matches.push_back(port_bit);
if (port_bit != nullptr)
matches.push_back(port_bit);
}
}
}