From 0fb5efd914e2ca5e607e6af98ec7dca8ece3979a Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Wed, 28 Mar 2018 12:39:40 -0400 Subject: [PATCH] Corrected a crash condition during pin matching if any subcell has no pins at all. --- base/netcmp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/base/netcmp.c b/base/netcmp.c index 53fdf18..496d9af 100644 --- a/base/netcmp.c +++ b/base/netcmp.c @@ -6675,6 +6675,7 @@ int MatchPins(struct nlist *tc1, struct nlist *tc2, int dolist) if (ob1 && ob1->next && ob1->next->type != PORT) break; } + if (ob1 == NULL) ob1 = tc1->cell; /* No ports */ /* Assign non-matching pins in tc2 with real node */ /* connections in the cell to the end. Create pins */ @@ -6760,6 +6761,7 @@ int MatchPins(struct nlist *tc1, struct nlist *tc2, int dolist) if (ob2 && ob2->next && ob2->next->type != PORT) break; } + if (ob2 == NULL) ob2 = tc2->cell; /* No ports */ /* If cell 2 has fewer nodes than cell 1, then add dummy (unconnected) */ /* pins to cell 2. If these correspond to numbers missing in the match */