You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: panic removing InPorts in MultiPortGraph::set_num_ports (#191)
See test case. The problem is that iterating through the `dropped_ports`
reads `self.multiport` using *old* indices, after `self.multiport` was
mutated/renumbered by the callback earlier. (Thus, if the first OutPort
was a multiport, removing the last InPort can end up reading a false
positive.)
I've tried to see if I can break it by adding inports too, but in such
cases all the ports get moved to a new "block" so there is no problem
(hence, a more thorough "fix" to do *all reading* of self.multiport
before *any writing* to it, including the reading+writing performed by
`self.multiport.swap`, does not appear necessary).
0 commit comments