Corrected an error in the last commit which can cause the pin

enumeration in MatchPins() to overflow the cover() array and
cause a segmentation fault.
This commit is contained in:
Tim Edwards 2022-06-14 11:36:30 -04:00
parent edbe5d6e86
commit 1b6e4e2b36
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
1.5.223
1.5.224

View File

@ -7381,7 +7381,7 @@ int MatchPins(struct nlist *tc1, struct nlist *tc2, int dolist)
/* If there are multiple pins on the same net, cycle through them; */
/* otherwise, move to the next entry in the partition. */
if (ob1->next && (ob1->next->node == ob1->node)) {
if (ob1->next && (ob1->next->type == PORT) && (ob1->next->node == ob1->node)) {
ob1 = ob1->next;
ob2 = tc2->cell; /* Restart search for matching pin */
i++;